line breaks in mail sent using php

alisch

Guppy
Hi, I am using a php script that sends mail using \n in the body to start new lines.
When I open the mail in outlook its written all in one line though.

Does anyone know how this can be fixed or why it's happening?

Thanks!
 
There are a few possible fixes listed at:
http://in2.php.net/mail

or you can use better(more features and no LF issue) mailer classes like swiftmailer or phpmailer.
They both come with easy examples.
 
Back
Top