Java – email client library [closed]
I'm looking for a library that encapsulates the JavaMail API on the receiving end in the same way that common email handles email sending
In my perfect world, the library works as follows:
>Subscribe to mail server > notify me when email arrives > process attachments for me (why care about Base64 encoding?) > Disconnect from the mail server
Does anyone know the mail library / API above?
Solution
You can see jodd email: http://jodd.org/doc/email.html (see "receiving e-mail") In addition to sending e-mail, it also includes a JavaMail API for receiving e-mail So you can do:
>Connect to POP3 (plan and SSL) mail server > receive e-mail manually > process all received e-mail using a simple API; Including multiple messages, attachments, contentids, etc. > disconnect from the mail server
As you can see, you have to receive email manually, so it won't immediately notify your code (your point #2) This is purposeful because there are many ways to notify your code and how to monitor incoming emails Most of this is actually easy to implement, or depends on the rest of the application architecture / libraries used