Simple wrapper for javax.mail. Supports attachments, multiple recipients. I wrote this because I needed to be able to construct an email with an attachment from a byte array and reference the attachment in the html content of the email.
Basic Usage:
SimpleMail myMail = new SimpleMail("smtp.gmail.com",465,"myUsername","myPassword");
myMail.setFrom("[email protected]");
myMail.addRecipient("[email protected]");
myMail.setSubject("Test SimpleEmail");
myMail.setBody("this is the body that I am testing");
myMail.sendMail();