我应该使用什么库来通过 ruby 发送电子邮件
现在我想编写一个应用程序,每天通过 ruby 发送数百万封电子邮件,现在我知道有一些选项,例如 net::smtp 和 actionmailer,也许还有其他选项,有人可以推荐一个更好的库,以便我可以使用它来完成我的工作吗?任务。
先感谢您。
Now i want to write one app which send emails millions each day by ruby, now i know there is some options such as net::smtp and actionmailer, maybe others, could someone recommend one better library so that i can use it to finish my task.
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议使用 mail gem。 Rails 3 中的 ActionMailer 在底层使用它,它可以与 1.9.2 和 jruby 一起使用,并且这里有大量很好的文档: https://github.com/mikel/mail
代码示例:
您可能还需要考虑使用 Sendgrid 或 Amazon SES 为您发送电子邮件,他们已准备好所有基础设施并确保卓越的交付能力。
I would suggest using the mail gem. ActionMailer in rails 3 uses it under the hood and it works with 1.9.2 and jruby and there is loads of good documentation here: https://github.com/mikel/mail
Code example:
Something else you might want to consider is using Sendgrid or Amazon SES to send email for you, they have all of the infrastructure already in place and ensure excellent deliverability.
有很多方法可以做到这一点。
使用 smtp :链接
如果您使用的是 Rails :链接
如果你想使用 gems : 小马
There are many ways to do it.
Using smtp : link
If you are using Rails : link
If you want to use gems : pony