Java 应用程序接收传入电子邮件的最简单方法是什么?

发布于 2024-07-13 10:03:01 字数 94 浏览 5 评论 0原文

使用 commons-email 发送电子邮件很容易,使用 spring 则更容易。 接收传入的电子邮件怎么样? 是否有易于使用的 API 允许退回电子邮件、处理附件等?

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, process attachments, etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

过潦 2024-07-20 10:03:01

SubEthaSMTP 邮件服务器允许您创建自己的 SMTP 服务器来接收电子邮件。

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

紫轩蝶泪 2024-07-20 10:03:01

James 可能是您最好的选择,但电子邮件处理极其复杂,不仅需要配置您的 MTA(James服务器),还有 DNS。 过去,我发现通过来自非 Java MTA(如 postfix)的钩子来启动处理程序更容易。 procmail 可能对您也有用。 不过对于 Java MTA 来说,James 很出色。

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.

梅倚清风 2024-07-20 10:03:01

Apache Commons Net 是通过 POP3 获取邮件的完美库。 不支持 IMAP。

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

如何视而不见 2024-07-20 10:03:01

查看 apache Camel 的 Mail 组件

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

Review the Mail component from apache camel

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

谈场末日恋爱 2024-07-20 10:03:01

此处查看 jGuru 的 JavaMail 教程。 有多种方法可以读取和分离附件。

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

薄凉少年不暖心 2024-07-20 10:03:01

查看 Sun 自己的 JavaMail (API 文档)满足您的需求。

我不确定最简单的方法,但至少它是一种广泛使用的方法。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文