I get some strange out put for the "FROM" when recieving an email.
$frmName="Online Livestock Sales - Join Auth Confitmation Code"; $frmSubject="Online Livestock Sales - Join Auth Confitmation Code"; $mystr=" Thankyou for joining onlinelivestocksales.com.\n\n All you need to do now is login and quote this authentication code to become activated: \n\n Authenticatin Code: " . $SpecialCode ." \n\nRegards,\n The onlinelivestocksales.com Team."; $frmEmail="firstname.lastname@example.org"; $uFromWho = "From:$frmName\r\nReply-to: $frmEmail\r\nX-Mailer: PHP/" . phpversion(); mail($uEmail, $frmSubject, $mystr, $uFromWho);
But the email I get ends up having this displayed in the from field (MS Otlook):
(CITY_HERE.ISP_NAME_HERE was changed from the real details to that displayed by me for posting on the forum. The strange part is that the service info that is added on the end is the recieving mail server, not the sending mail server, and I don't understand where the full stops come from)