Ok, i'm using the mail() function to send email via smtp (ini_set("SMTP", "something.myhost.com")😉 and when it is called, it is using root@myhost.com instead of the from address or return path im using. Its all on linux. here are the headers i'm setting up:
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: Multipart/Mixed;\r\n";
$header .= " boundary=\"------------Boundary-00=_2T2QP461VX7NTT4D7TH0\"\r\n";
$header .= "Content-Transfer-Encoding: 7bit\r\n";
$header .= "From: $fromAddress\r\n";
$header .= "Return-Path: <$fromAddress>\r\n";
$header .= "Reply-to: $fromAddress\r\n\r\n";
I have tried the -f flag (for sendmail), doesn't work, i have tried sendmail_from doesn't work, i cannot figure a way to change the address for sendmail.
please help anyone.
Thanks
Dan