Ok I sort of snickered at something that wraps JavaMail and is aimed at making JavaMail "easier". Yet upon inspection commons email is pretty slick and is a great idea. I have a mail utility class that does almost exactly what some of commons email does (also wrapping JavaMail), and therefore I guess it is a good idea to centralize the "common" utility oriented stuff.
This is how you send email in java from here on out:
SimpleEmail email = new SimpleEmail();
email.setHostName("mail.myserver.com");
email.addTo("jdoe@somewhere.org", "John Doe");
email.setFrom("me@apache.org", "Me");
email.setSubject("Test message");
email.setMsg("This is a simple test of commons-email");
email.send();
And note that it can do a lot more than this, this is the ultra simple example.
Chatter
19 hours 52 min ago
20 hours 21 min ago
1 day 6 hours ago
1 day 10 hours ago
2 days 1 hour ago
3 days 19 hours ago
4 days 10 hours ago
1 week 3 hours ago
1 week 1 day ago
3 weeks 1 day ago