Reply
mail() and /n
Old 08-06-2008, 02:12 PM mail() and /n
Novice Talker

Posts: 7
So I'm using mail() to send out some confirmation e-mails. But for some reason \n wont create a newline in the message, it just shows up as "\n" when it arrives.

What could cause this? Configuration of the server, or am I doing something else wrong?
Mikon is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-06-2008, 03:06 PM Re: mail() and /n
VirtuosiMedia's Avatar
Usability > SEO

Posts: 957
It would help if you would post some code. Generally, it would be caused if your string is encapsulated in single quotes rather than double because single quotes display everything as literal, meaning exactly the way you type it. Double quotes allow for variables and other special characters such as the newline to be used.
__________________
Want new web resources every day? - Follow me on Twitter
RSS Feed Tutorial

Last edited by VirtuosiMedia : 08-06-2008 at 03:07 PM.
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 08-06-2008, 05:57 PM Re: mail() and /n
Novice Talker

Posts: 7
Oh... that's the problem then, I used singles.

Thanks
Mikon is offline
Reply With Quote
View Public Profile
 
Old 08-06-2008, 06:06 PM Re: mail() and /n
VirtuosiMedia's Avatar
Usability > SEO

Posts: 957
No problem, glad I could help.
__________________
Want new web resources every day? - Follow me on Twitter
RSS Feed Tutorial
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Reply     « Reply to mail() and /n
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.09024 seconds with 12 queries