joomla/joomla-platform — pull request #1633 by dongilbert (2012-10-24 17:17:46+00:00)
Title: Adding JMail::IsHTML and have it return  for chaining. Includes tests.

With the current implementation of JMail, you can't do something like this:

```
JFactory::getMailer()
->addRecipient($to)
->setSubject($subject)
->setBody($body)
->addAttachment($attachment)
->IsHTML(true)
->Send();
```

because `PHPMailer::IsHTML` doesn't support method chaining on the object. This PR fixes that.