Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HELP-14590: replacing LF with CRLF before sending emails (#6539)
Per SMTP spec bare line feed (LF) are forbidden and CRLF should be used instead. Some SMTP relays and server in both ends are nice enough to correct bad line ending, but some don't. Like in one case relay server is Office 365 and receiving end is AOL.com. Office 365 stopped correcting line endings and AOL is not fixing it either. This cause the email to bounce back with Non-Delivery Report (NDR) message. From [here](https://www.drupal.org/forum/support/post-installation/2017-06-05/office-365-blocks-emails-with-bare-line-feeds-how-to-fix): When bare line feed characters are included in a message, the SMTP protocol chunking feature is required to transmit the message between email servers. Chunking uses the SMTP protocol BDAT command, but the recipient's email server (in our case AOL) doesn't support the BDAT command.
- Loading branch information