Better JUnit test
Javadocs
JMS delivery mode can be set by javax.mail.Session property "mail.smtpjms.jmsDeliveryMode"
javadocs
Refactoring
New JUnit test
javadocs
Cleanup
Example app: Message changed to multipart / alternative
Support for javaMail events
cleanup