Commons Email is designed as an easy-to-use library that is aimed at providing an API for sending emails. It is built on top of the Java Mail API, which it aims to simplify.
Some of the mail classes that are provided are as follows:
· SimpleEmail - This class is used to send basic text based emails.
· MultiPartEmail - This class is used to send multipart messages. This allows a text message with attachments either inline or attached.
· HtmlEmail - This class is used to send HTML formatted emails. It has all of the capabilities as MultiPartEmail allowing attachments to be easily added. It also supports embedded images.
· EmailAttachment - This is a simple container class to allow for easy handling of attachments. It is for use with instances of MultiPartEmail and HtmlEmail.
Requirements:
· Java
What's New in This Release: [ read full changelog ]
· hanging groupId from "commons-email" to "org.apache.commons" because the 1.1 release was already using "org.apache.commons"
· Using "http://example.invalid" for a bad url - ".invalid" is reserved and not intended to be installed as a top-level domain in the global Domain Name System (DNS) of the Internet.
· Made BaseEmailTestCase abstract and fixed a few coding issues.
· 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.
· Email.setFrom and Email.addTo are using Email.charset to properly encode the name. Fixes EMAIL-75.
· SimpleEmail#setMsg() with UTF-8 content honors correct charset in header and does encode the content correctly now. Fixes EMAIL-79.
· Created additional methods to support timeouts. Fixes EMAIL-84.
· Create an overridable method in Email.java to create the MimeMessage instance. Fixes EMAIL-74.
· If setHostName() has not been called, getHos...