joomla/joomla-cms — pull request #2099 by Hackwar (2013-10-01 18:13:43+00:00)
Title: deprecating JMail::getInstance()

Use 'new JMail' every time.

JMail::getInstance() currently re-uses an old object. If you send out several mails during one page load, you have to use new JMail objects, otherwise the recipient of the first mail will also get the second mail that you send with that object, since the list of recipients is not cleared after sending a mail.