joomla/joomla-cms — pull request #4053 by itbra (2014-08-01 16:18:34+00:00)
Title: Fixed PHPMailer width attachment(s)

I found the PHPMailer deployed (v5.2.6) unable to send mail with attachments (PDF in my case). Despite the correct settings (var_dumped the mailer object before calling `Send()`) i always receive empty emails (no body despite a body was set) and no attachment.
After several hours or headache and playaround i decided to checkout the latest PHPMailer from github and try to send mail directly (without the use of JMail). And it worked right out of the box. Everything arrived as intended.

Since PHPMailer evolved (its v5.2.8 now) several slight changes where applied. Those relevant for Joomla! were part of my refactoring. In fact these changes are only case changes of the methods names to call from PHPMailer and adding two more imports to the head of JMail. With these changes sending mail with and without attachments works properly (at least for me).

But i suppose the automated test require some changes regarding the methods to call.