开发者

EMail Client Library [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 6 years ago.

开发者_运维问答 Improve this question

I'm looking for a library that wraps the javamail API on the receiving side, in the same manner that Commons Email handles the sending of emails.

In my perfect world the library works in the following manner:

  1. Subscribe to a mail server
  2. Notify me when an email arrives
  3. Handle attachments for me (why should I care about base64 encoding?)
  4. Disconnect from the mail server

Anybody know of a mail library/API that does the above?


You may look at Jodd Email: https://jodd.org/email/ (see: 'Receiving emails'). Besides for sending emails, it also wraps javamail API for receiving emails. So you can do:

  1. Connect to a pop3 (plan and ssl) mail server
  2. Receive emails manually
  3. Process all received emails using simple API; including multiple messages, attachments, contentIds etc.
  4. Disconnect from mail server

As you see, you have to receive emails manually, so it will not notify your code out-of-box (your point #2). This is done on purpose, as there are many ways how your code can be notified and how received email can be monitored. Most of this is really easy to implement or depends on the rest of your application architecture/used libraries.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜