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 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" ; 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 . 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 /> 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
Archived
This topic is now archived and is closed to further replies.