views:

106

answers:

3

I am investigating on the best free mail library to use for java web applications. It is something with more support and easy to use. If it's complex but would be justified by its great features it might do. Have any suggestions?

+1  A: 

Does the Sun Javamail API not work for you?

http://java.sun.com/products/javamail/

Jim Garrison
it works but i was kindda hoping for something more full blown
cedric
+3  A: 

"Best" is subjective. Especially since you didn't specify any particular features you may be looking for.

That said, here's a couple to get you started:

  1. JavaMail
  2. Commons Email - built on top of JavaMail, simplifies certain commonly used scenarios.
  3. Spring Email integration (only if you're using Spring already)
ChssPly76
A: 

JavaMail is the standard, but it is only a client, so you need to have a separate e-mail service to send mail. Asprin is a good implementation of a server.

EDIT: Asprin is a send only e-mail server. You can't use it as a full fledged POP or IMAP server. It just sends e-mail without any further third party (such as an ISP's mail service) dependencies (other than an internet connection). Unlike JavaMail, which requires you to have an SMTP server available to send e-mail for you (like from your ISP). If you need a full e-mail server, that can provide pop and imap e-mail, take a look at James.

Here is a list of java mail options, although most, like JavaMail, are clients, not stand alone solutions.

Yishai
Brian Agnew
@Brian, you don't understand the link. The link is saying you need an SMTP server provided by your ISP. With Asprin, you do not, it is its own SMTP server.
Yishai
wow... Own SMTP server. Can aspirin also act as a IMAP server? If it can then that would really be great. That would complete my mail system.
cedric