lional Posted April 5, 2008 Share Posted April 5, 2008 Hi All I am trying to mail from php and what is hapenning is that the mail comes through to the web client with the senders email address which is coccect but it adds the header to the email address eg. [email protected]: 1.0 $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $mail_out"; }}} // And now mail it! if ($name_out && $telephone_out && $mail_out) { mail($to, $my_subject, $my_message, $headers); } Any help will be appreciated Thanks Lional Quote Link to comment https://forums.phpfreaks.com/topic/99656-emailing-from-php/ Share on other sites More sharing options...
benjaminbeazy Posted April 5, 2008 Share Posted April 5, 2008 put your From: first.... Quote Link to comment https://forums.phpfreaks.com/topic/99656-emailing-from-php/#findComment-509797 Share on other sites More sharing options...
lional Posted April 5, 2008 Author Share Posted April 5, 2008 it still does it. I have it working on another sscipt with an identical script and it works fine on that site Quote Link to comment https://forums.phpfreaks.com/topic/99656-emailing-from-php/#findComment-509805 Share on other sites More sharing options...
benjaminbeazy Posted April 5, 2008 Share Posted April 5, 2008 try throwing \r\n after emailaddress Quote Link to comment https://forums.phpfreaks.com/topic/99656-emailing-from-php/#findComment-509809 Share on other sites More sharing options...
lional Posted April 5, 2008 Author Share Posted April 5, 2008 Thankyou much appreciated Lional Quote Link to comment https://forums.phpfreaks.com/topic/99656-emailing-from-php/#findComment-509812 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.