Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 7
Trades: 0
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
 
 
Register now for full access!
Old 08-06-2008, 04:06 PM Re: mail() and /n
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
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
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

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

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

Thanks
Mikon is offline
Reply With Quote
View Public Profile
 
Old 08-06-2008, 07:06 PM Re: mail() and /n
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
No problem, glad I could help.
__________________
Want new web resources every day? - Follow me on
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Reply     « Reply to mail() and /n
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.13258 seconds with 12 queries