|
-
Apr 6th, 2006, 08:06 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Newline in Text Only emails
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
-
Apr 6th, 2006, 08:46 PM
#2
Re: Newline in Text Only emails
-
Apr 6th, 2006, 08:53 PM
#3
Re: Newline in Text Only emails
-
Apr 6th, 2006, 09:04 PM
#4
Re: Newline in Text Only emails
I was close penagate
-
Apr 6th, 2006, 09:26 PM
#5
Re: Newline in Text Only emails
I had a bangin' PHP email tutorial but our server is down
-
Apr 6th, 2006, 11:01 PM
#6
Thread Starter
Fanatic Member
Re: Newline in Text Only emails
i've already tried \n but it doesn't work.
so i'm going to try \r\n
-
Apr 6th, 2006, 11:05 PM
#7
Re: Newline in Text Only emails
When you can access the tut again can you post it or PM it to me?
Thanks.
-
Apr 6th, 2006, 11:12 PM
#8
Re: Newline in Text Only emails
 Originally Posted by modpluz
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.
PHP Code:
$mail = 'First line'."\r\n".'Second line'
Otherwise they are not parsed.
 Originally Posted by lintz
When you can access the tut again can you post it or PM it to me?
Yes;
-
Apr 6th, 2006, 11:42 PM
#9
Thread Starter
Fanatic Member
Re: Newline in Text Only emails
-
Apr 7th, 2006, 03:33 AM
#10
Re: Newline in Text Only emails
This works for me.....
PHP Code:
$mail = "'First line'\r\n'Second line'";
mail("[email protected]","Test lines",$mail);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|