For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2005 > 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: phpdoc /en/reference/mail/functions mail.xml
Aidan Lister

2005-04-29, 3:57 am

> You must use <literal>\r\n</literal> to separate headers, although
> - some Unix mail transfer agents may work with just a single newline
> - (<literal>\n</literal> ).
> + some Unix mail transfer agents replace <literal>\n</literal> by
> + <literal>\r\n</literal> automatically (leads to doubling
> + <literal>\r</literal> if <literal>\r\n</literal> is used).


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?
Sponsored Links







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

Copyright 2008 codecomments.com