fuel / email

Fuel PHP Framework - Fuel v1.x Email library
60 stars 38 forks source link

newline has to be \r\n. tested only \n and it fails in 1.0.1 and 1.1 #5

Closed ghost closed 12 years ago

frankdejonge commented 12 years ago

@mooseware, We tested this, and most people servers work with \n and not with \r\n.

gillesdemey commented 12 years ago

http://php.net/manual/en/function.mail.php

"If messages are not received, try using a LF (\n) only. Some poor quality Unix mail transfer agents replace LF by CRLF automatically (which leads to doubling CR if CRLF is used). This should be a last resort, as it does not comply with » RFC 2822."

It seems like "\r\n" really is the way to go when composing headers.