For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2005 > Re: [PHP-DOC] Re: phpdoc /en/reference/mail/functions mail.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DOC] Re: phpdoc /en/reference/mail/functions mail.xml
Jakub Vrana

2005-04-29, 8:57 am

>> You must use <literal>\r\n</literal> to separate headers, although

Aidan Lister wrote:[color=darkred]
> The problem with this is \n is wrong, and \r\n is right. If you're a new
> user, and you read the above, what would you use? I'd most certainly use =

\n,
> which is exactly what we don't want, right?=20


Both of \n and \r\n can be wrong, it depends on the transfer agent.
Some Unix transfer agents replace \n with \r\n so using \r\n will lead
to \r\r\n - it's wrong the same as plain \n is.

Jakub Vrana
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com