EllisLab/CodeIgniter — pull request #2484 by chrisege (2013-06-11 17:59:35+00:00)
Title: added newlines to end of email header when send_multipart === false

When using class CI_Email to send an SMTP message, if the config settings are `'mailtype' === 'html'` and `'send_multipart' === FALSE`, no whitespace is inserted between the message header and the message body. There should be two newlines. With Amazon SES (and presumably with other SMTP services), this causes a failure, as the server interprets the message as if it was more header data.

This PR just appends newlines at the end of the header in the same fashion that they're appended in the case of `'send_multipart' === TRUE`.