HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 108915 thumbnail
User 184421 avatar

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.
  • 10
  • 1
  • 1824
  • 5

Comments

Add your comment
User 152955 avatar

Gregg Bolinger replied ago:

0 votes Vote down Vote up Reply

"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.

User 202710 avatar

wytten replied ago:

0 votes Vote down Vote up Reply

Shame that it depends on Javamail, which has questionable licensing.
,

User 294742 avatar

dmitryx replied ago:

0 votes Vote down Vote up Reply
User 294742 avatar

dmitryx replied ago:

0 votes Vote down Vote up Reply

dont get me wrong, i can see these are different articles.
still.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (1)