Let's have a look at the php-documentation for mb_send_mail:
additional_parameter is a MTA command line parameter. It is useful when setting the correct Return-Path header when using sendmail.
So... does anyone have an example for this???
My problem: sending a mail with mail() sends out a wrong
header - our mailserver does not accept relaying... so it drops
the message and can't send the mail back to the linuxbox or
the sender...
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: $sentby <$sentby>\r\n";
if ($sendmeCC=='1'){$headers.="CC: $sentby\r\n";}
@mail("$sendto", $msubject , $sendmsg, $headers);
Header contains a wrong "Return-Path" ... altering the header does not work... so mb_send_mail would be the right way... but i can't figure out, how... 🙁 any ideas??
Should be:
Return-Path: <sent.by@companys-mailserver.com>
wrong headers:
Return-Path: <postmaster@companys-mailserver.com> (internal mails)
or
Return-Path: <wwwrun@linux.box> (external mails)