We've recently modified our e-commerce web application and replaced the native PHP mail functionality with a Phpmailer and SMTP. It was a pretty straightforward change, and we kept the mail format to "Plain/Text" format and changed the mail host to "smtp.sendgrid.net". After the change, we've noticed that the newline "\n" wasn't interpreted correctly and the mail we received was all garbled up. After some investigation, we found 2 things that needed to be changed to correct the problem.