如何用 Java 发送电子邮件?
嘿。我目前想用 Java 开发一个发送电子邮件的简单程序。不仅仅是几封电子邮件,而是很多(10k+) 顺便说一下,我有一份所有人都同意的订户名单。
无论如何,我无法通过 Gmail 或类似的方式发送这些电子邮件 - 他们不允许发送那么多电子邮件。所以基本问题是:如何通过将实际发送计算机设置为电子邮件服务器来发送电子邮件?
我确信我应该使用一些库,我听说过 ChillKat 或类似的东西。
有人可以解释/帮助我吗?将非常感激。
Hey. I currently want to develop a simple program in Java that sends out email. Not just a few emails, but actually a lot (10k+)
I have a subscribers list that all agree to it, by the way.
Anyway, I cannot send these emails via Gmail or anything like that - They do not allow that many emails to be sent. So the basic question is: How do I send emails by making the actual sending computer an email server?
I'm sure I should use some libraries, I heard about ChillKat or something like that.
Could anyone explain / help me out? Would be very much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
James 是一个基于 Java 的非常强大的电子邮件服务器,您可以使用 JavaMail API。此外,James 集成了 mailet API,这对于提高您的功能非常有用邮件服务器。
您可以配置它以轻松更改配置文件来设置 gmail 上的网关。 参阅此主题)
(请 可以在这里找到关于 James 和 mailet 的非常好的教程:与 James 一起工作< /a>
James is a very powerful email server base on Java which with you can use the JavaMail API. Moreover James integrate the mailet API which is very usefull to improve the functionality of your mail server.
You can configure it to set the gateway on gmail easily changing the config file. (see this topic)
You can find a very good tuto here about James and mailet: Working with James