JREAM Posted August 28, 2009 Share Posted August 28, 2009 $headers = 'From: '.$from.'' . "\r\n" . 'Reply-To: '.$from.'' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); How come this sends as those characters and doesn't parse it as newlines? Tested receiving with GMail. Quote Link to comment https://forums.phpfreaks.com/topic/172213-when-using-r-and-n-in-your-mail/ Share on other sites More sharing options...
kenrbnsn Posted August 28, 2009 Share Posted August 28, 2009 I just tested you code and it worked fine for me. What type of server do you use? Can we see more of your code? Ken Quote Link to comment https://forums.phpfreaks.com/topic/172213-when-using-r-and-n-in-your-mail/#findComment-908109 Share on other sites More sharing options...
oni-kun Posted August 28, 2009 Share Posted August 28, 2009 Yes, $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); Is the example on php.net of mail, Your server may be doing something to it.. You can remove the \r and try, it might be a problem with your webserver's SMTP. Quote Link to comment https://forums.phpfreaks.com/topic/172213-when-using-r-and-n-in-your-mail/#findComment-908127 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.