How can I add break lines?
I'm using this:
$mailbody=$username."\r\n";
$mailbody.=$email."\r\n";
$altbody=$username."\r\n";
$altbody.=$email."\r\n";
But break lines are not there.
I'm using $altbody
because for some reason the software I use to receive the emails does not read HTML, only plain text, so, $altbody
is the body when the email reader does not support HTML, so, I can't use BR neither...
Any ideas?
normally linebreaks with only \n
should work in plain text emails.
but stick to the <br/>
s in your html-mail $mailbody
.