Click to See Complete Forum and Search --> : [RESOLVED] Newline in Text Only emails
modpluz
Apr 6th, 2006, 08:06 PM
pls can someone show me how to make new line in a text only email
to replace the <br> tag in HTML formatted emails.
Thank you in advance
lintz
Apr 6th, 2006, 08:46 PM
Try...
\n
penagate
Apr 6th, 2006, 08:53 PM
\r\n for Windows.
lintz
Apr 6th, 2006, 09:04 PM
I was close penagate ;)
penagate
Apr 6th, 2006, 09:26 PM
I had a bangin' PHP email tutorial but our server is down :(
modpluz
Apr 6th, 2006, 11:01 PM
i've already tried \n but it doesn't work.
so i'm going to try \r\n
lintz
Apr 6th, 2006, 11:05 PM
When you can access the tut again can you post it or PM it to me?
Thanks.
penagate
Apr 6th, 2006, 11:12 PM
i've already tried \n but it doesn't work.
so i'm going to try \r\n
Make sure the escape sequences are in double quoted strings
e.g.
$mail = 'First line'."\r\n".'Second line'
Otherwise they are not parsed.
When you can access the tut again can you post it or PM it to me?
Yes;
modpluz
Apr 6th, 2006, 11:42 PM
it's not working...
lintz
Apr 7th, 2006, 03:33 AM
This works for me.....
$mail = "'First line'\r\n'Second line'";
mail("youremail@yourdomain.com","Test lines",$mail);
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.