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

前端 未结 6 2123
野的像风
野的像风 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: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.

提交回复
热议问题