Reputation: 131
I am building a web application that has to be able to do the following:
What are the potential open source technologies I could integrate with here? Thanks for your inputs.
Upvotes: 3
Views: 2417
Reputation: 565
There is a JCA (Java Connector Architecture) adapter that makes your Java EE server open port 25 for receiving mails.
http://sourceforge.net/projects/mailra/
A quite old tutorial which is incomplete with some examples for IMAP watching can be found here: https://community.jboss.org/wiki/InboundJavaMail
A general introduction to JCA can be found here: http://www.adam-bien.com/roller/abien/entry/a_simple_transactional_file_jca
Upvotes: 0
Reputation: 16339
While Commons Email will help you get the sending part done, receiving email will require that you access mailboxes via IMAP or POP through the Java Mail API.
Java Mail is a little cumbersome to use, but this Stackoverflow question has a working IMAP sample to help you get started.
Upvotes: 1
Reputation: 1109552
So, you want a SMTP server? If you want to have it in Java, then I can suggest to pick Apache James. But in fact every decent SMTP server would suffice. You can just use JavaMail API, or the more convenienced Apache Commons Email which is built on top of JavaMail API, to talk with any SMTP server to send/read emails.
If you didn't already realize, you can also just make use of an existing SMTP server provided by your ISP or the web hosting. In this case only JavaMail or Commons Email would have been sufficient.
Upvotes: 3