sungpeng Posted February 5, 2012 Share Posted February 5, 2012 $msg = "E-mail sent from Sgforums.org/Swimming. <br>"; $msg .= " hello <br>"; $msg .= " friend <br>"; mail($to, $subjects, $msg, $mailheaders); Do anyone know how to add an <br> at $msg message when received mail Quote Link to comment https://forums.phpfreaks.com/topic/256460-mail-php-msg-with/ Share on other sites More sharing options...
digibucc Posted February 5, 2012 Share Posted February 5, 2012 <br> will only work if your message is in html format, if it's text use newline \n Quote Link to comment https://forums.phpfreaks.com/topic/256460-mail-php-msg-with/#findComment-1314768 Share on other sites More sharing options...
sungpeng Posted February 6, 2012 Author Share Posted February 6, 2012 thank you Quote Link to comment https://forums.phpfreaks.com/topic/256460-mail-php-msg-with/#findComment-1314992 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.