views:

147

answers:

3

If reading and parsing email from via Pop is a critical part of my application, would it make sense to go with a commercial email component, or is JavaMail all I need really?

My usage: I want to connect to pop3, ssl support, and also imap support.

I intend of displaying the email in a web browser also i.e. a web email client.

+2  A: 

JavaMail is open source. You can use that as a basis of an in-house project if you need to buff it up some.

If you want to use something commercial, be sure you have the source if you need to tweak it to local needs.

Chris Jester-Young
using http://commons.apache.org/email/ would be easier.
rochb
@rok: +1 for mentioning Apache Commons; I just learnt of yet another new Apache Commons library. :-D
Chris Jester-Young
+2  A: 

Commons Email only provides functionality for sending email, not parsing it.

JavaMail should be fine for what you're trying to do, but it can be a bit yucky in places and incredibly strict in terms of RFC compliance. You'll find that email clients don't necessarily adhere to the specification fully either so the problem will be in handling the edge cases and oddities in terms of incoming emails.

It does provide POP and IMAP support over SSL, check the API for more details:

http://java.sun.com/products/javamail/javadocs/index.html

Jon
+1  A: 

Depending on your budget, you may want to look at IP*Works! and IP*Works! SSL: http://www.nsoftware.com/portal/java/

They are definitely pricey, but so much nicer to work with compared to JavaMail and if you get stuck, they actually have pretty decent support.

jckdnk111