What is the easiest way for a Java application to receive incoming email?

前端 未结 6 2086
野的像风
野的像风 2020-12-24 00:56

Sending email is easy with commons-email, and with spring it is even easier. What about receiving incoming email? Are there easy to use APIs that allow to bounce emails, pro

相关标签:
6条回答
  • 2020-12-24 01:04

    Check jGuru's JavaMail tutorial here. There are ways to read and detach attachments.

    0 讨论(0)
  • 2020-12-24 01:06

    Review the Mail component from apache camel

    http://camel.apache.org/mail.html

    0 讨论(0)
  • 2020-12-24 01:08

    SubEthaSMTP Mail Server allows you to create your own SMTP Server for receiving emails.

    0 讨论(0)
  • 2020-12-24 01:10

    See if Sun's own JavaMail (API docs) suits your needs.

    I'm not sure about easiest, but at least it is a widely used way.

    0 讨论(0)
  • 2020-12-24 01:11

    James is probably your best bet, but email handling is extremely complex, requiring not only configuration of your MTA (the James server), but also DNS. In the past, I've found it easier to initiate my handlers via hooks from non-Java MTA's like postfix. And procmail might also be useful to you. For a Java MTA though, James rocks.

    0 讨论(0)
  • 2020-12-24 01:27

    Apache Commons Net is the perfect library to fetch mails via POP3. IMAP is not supported.

    0 讨论(0)
提交回复
热议问题