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 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.... 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 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 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 Link to comment https://forums.phpfreaks.com/topic/99656-emailing-from-php/#findComment-509812 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.