By fdiotalevi
via enigmastation.com
Published: Sep 02 2008 / 09:03
You send mail in Java with one of two APIs, basically: JavaMail and Commons-Email. People who use JavaMail fit in one of three categories: they don't know about Commons-Email, they are doing bulk mail and know what they're doing, or they're gluttons for punishment. SendMail.java is a class that shows how to send mail with both JavaMail and Commons-Email, for the case of sending to a single address.



Comments
Gregg Bolinger replied ago:
"The JavaMail version requires mail.jar and activation.jar in your classpath"
So does Commons Email. From the Commons Email website:
"Commons Email aims to provide a API for sending email. It is built on top of the Java Mail API, which it aims to simplify. "
I know this was kind of the point that was trying to be made but it wasn't made as clearly. It sounds as if Commons Email is a separate project, and it is, but it isn't. It still needs mail and activation.
wytten replied ago:
Shame that it depends on Javamail, which has questionable licensing.
,
dmitryx replied ago:
published yesterday:
http://www.dzone.com/links/sending_email_in_java_theres_more_than_one_way.html
dmitryx replied ago:
dont get me wrong, i can see these are different articles.
still.
Voters For This Link (10)
Voters Against This Link (1)