What is the proper newline in emails? LF or CRLF?
问题 Recently some customers complained that they were getting garbled emails. MIME headers were showing, and base64 encoded data, etc. Stuff that should have been decoded by their mail clients. After investigating I found that some mail clients (gmx.de webmail to name one) inserted a blank line after every other line, thus indeed messing everything up. Following a hunch, I changed my mail sending code to replace all CRLF with just LF. And lo and behold - the mail arrived whole. Now, this is weird