R.A. Imhoff
14 years ago
Thank you for your suggestions!
I did set the "From: " correctly, both in the php.ini and in the php code that calls mail(), but this only sets the "From:" and not the "Return-path:"
I agree that the message-id is not that important, but it would be nice if one could have the "Return-path:" reflect the same domain as "From:"
I have this in php.ini (the -r parameter is supposed to set the return-path, but seems to have no effect):
sendmail_path = "sendmail -t -i -f ***@mydomain.com -r ***@mydomain.com"
and in the php code sending the mail, the headers are also set:
$headers = 'From: me < ***@mydomain.com >' . PHP_EOL .
'Reply-To: me < ***@mydomain.com >' . PHP_EOL .
'X-Mailer: www.mydomain.com' ;
...
$result = mail($to, $subject, $message, $headers);
The outgoing mail does have the correct "From:" and "Reply-To:" headers, but the "Return-Path" stays as the hostname of the machine --
I did set the "From: " correctly, both in the php.ini and in the php code that calls mail(), but this only sets the "From:" and not the "Return-path:"
I agree that the message-id is not that important, but it would be nice if one could have the "Return-path:" reflect the same domain as "From:"
I have this in php.ini (the -r parameter is supposed to set the return-path, but seems to have no effect):
sendmail_path = "sendmail -t -i -f ***@mydomain.com -r ***@mydomain.com"
and in the php code sending the mail, the headers are also set:
$headers = 'From: me < ***@mydomain.com >' . PHP_EOL .
'Reply-To: me < ***@mydomain.com >' . PHP_EOL .
'X-Mailer: www.mydomain.com' ;
...
$result = mail($to, $subject, $message, $headers);
The outgoing mail does have the correct "From:" and "Reply-To:" headers, but the "Return-Path" stays as the hostname of the machine --
...