Closed rostopira closed 3 years ago
Hosting company replied, that \r\n
are required by RFC5322 standard
Section 2.1:
Messages are divided into lines of characters. A line is a series of characters that is delimited with the two characters carriage-return and line-feed; that is, the carriage return (CR) character (ASCII value 13) followed immediately by the line feed (LF) character (ASCII value 10). (The carriage return/line feed pair is usually written in this document as "CRLF".)
Some servers doesn't understand
\n
so whole email appears as single line insideContent-Type
I thinkappend
function should replace all\n
with\r\n
I had to do that manually to make it work