The MimeMessageParser will now correctly parse MIME multi-parts of type "text/plain"
and "text/html" with a content disposition header of "attachment". The parts will
be added to the list of attachments even if there is no other text or html content. Fixes EMAIL-131. Thanks to Raju Y.

Release 1.3.1 - 2013-03-04

Type

Changes

By

DataSourceClassPathResolver will now correctly set the DataSource name for resolved
resources. Additionally, it is now possible to set the name for a ByteArrayDataSource. Fixes EMAIL-125. Thanks to Jean-Marc.

Release 1.3 - 2013-01-10

Type

Changes

By

Use the provided Content-ID in HtmlEmail#embed(File, String) instead of creating
a random one. The used and returned Content-ID will be URL encoded (see RFC 2392). Fixes EMAIL-101. Thanks to Andrew Starodub.

The patch actually broke sending emails over a secured connection - disabled the
"MAIL_SMTP_SSL_CHECKSERVERIDENTITY" and "MAIL_SMTP_SSL_ENABLE" activation. Tested
the functionality using GMail, GMX and Office365 so the code is at least working for
a couple of existing SMTP servers. Also added 'sslCheckServerIdentity' including
setter and getter. Also added a chapter regarding "Security" to the user manual. Fixes EMAIL-105. Thanks to Siegfried Goeschl.

Clarified the meaning of setTLS() which actually sends a "STARTTLS" command from the
client to the SMTP server. Please note that some "protected" variables were renamed
which could break existing code. Fixes EMAIL-105. Thanks to Bruno Harbulot.

Throwing an IllegalStateException when setting mail session properties for an already
created mail session because the settings would be ignored. Please note that this
change could potentially break existing (but invalid) code. Fixes EMAIL-96.

Calling buildMimeMessage() before invoking send() caused
duplicated mime parts for HtmlEmail. The implementation now enforces
that an email can be only used once and throw an exception when
multiple invocations of buildMimeMessage() are detected. Fixes EMAIL-95.

HtmlEmail invokes java.net.URL.equals(Object), which blocks to do domain name resolution. This
is avoided by using "url.toExternalForm().equals()" instead of "url.equals()". Fixes EMAIL-87. Thanks to sebb.

If setHostName() has not been called, getHostName() tries to return
this.session.getProperty(MAIL_HOST). If mail session has not been
created yet, this will throw a NullPointerException. Now getHostName()
checks that this.session is not null before trying to access it. Fixes EMAIL-71. Thanks to Teemu Lang, Corey Scott.

When mail authentication is required and no username/password is supplied
than the provided mail session is used. If a username/password is found
the implementation creates a new mail session and a DefaultAuthenticator
as convinence implementation. Fixes EMAIL-70. Thanks to F. Andy Seidl.

Using Kenneth's implementation of HtmlEmail.buildMimeMessage() to fix a
couple of HtmlEmail layout issues. Also thanks to Martin Lau and Morten
Hattesen for providing in-depth analysis of the problem Fixes EMAIL-65. Thanks to Kenneth Gendron.

Apache Commons, Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
All other marks mentioned may be trademarks or registered trademarks of their respective owners.