gasma1975 Posted January 27, 2008 Share Posted January 27, 2008 Hi, (I'm using PHP mail on a APPACHE windows server) How do you create a message with multiple lines. I tried: $msg = "this text is on the first line" . "\n\n" . "This text is on the second line" ; But the problem is that I get both inline...so how to ? thx Quote Link to comment https://forums.phpfreaks.com/topic/88103-cant-go-on-next-line-in-php-mail-message/ Share on other sites More sharing options...
clown[NOR] Posted January 27, 2008 Share Posted January 27, 2008 try this $msg = "this text is on the first line\n\nThis text is on the second line" ; Quote Link to comment https://forums.phpfreaks.com/topic/88103-cant-go-on-next-line-in-php-mail-message/#findComment-450762 Share on other sites More sharing options...
gasma1975 Posted January 27, 2008 Author Share Posted January 27, 2008 I tried it and its not working ! ??? I need to be able to build my message. Because I POST values from my form to email them after. So I get all data inline, its very hard to read and its really not sexy ! So this is why I use the append . Quote Link to comment https://forums.phpfreaks.com/topic/88103-cant-go-on-next-line-in-php-mail-message/#findComment-450766 Share on other sites More sharing options...
teng84 Posted January 27, 2008 Share Posted January 27, 2008 try <br /> Quote Link to comment https://forums.phpfreaks.com/topic/88103-cant-go-on-next-line-in-php-mail-message/#findComment-450775 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.