问题描述
我对ActionMailer有一些疑问:
-
Actionmailer如何连接到smtp服务器?
-
如果电子邮件数量大于1000,连接是并发还是并行?
-
当即时电子邮件影响ruby on rails应用程序时,电子邮件将如何像facebook一样发送电子邮件( 1000个数字),并且actionmailer将如何处理它?
-
是否有任何其他解决方案/插件可以从RoR应用程序中发送大量电子邮件(除ActionMailer之外)?
------------------------------------ ------------添加:
我们需要每15分钟至少发送1000封电子邮件。我们正在使用Notes Domino服务器作为我们的smtp服务器。这种问题的可能架构是什么?我们已经将电子邮件存储在数据库中,以便以后发送,但是需要的是发送方法!
通常的做法是创建一个后台作业以发送电子邮件。 ActionMailer对于单封电子邮件非常有用,但在发送多封电子邮件后往往会遇到麻烦,因为每封电子邮件可能需要几秒钟才能完成。这就是为什么我创建来帮助解决这些问题的原因。
市场上的一些服务可以帮助您从Rails发送大量电子邮件:
所有这些方法都可以通过单个API调用或SMTP事务发送多个消息。
I have some questions about ActionMailer :
How does Actionmailer connect to a smtp server ?
Are the connections concurrent or parallel if the number of emails high > 1000 ?
How will sending out emails like facebook does ( 1000's in numbers ) as immediate emails affect the ruby on rails application and how would actionmailer handle it ?
Any other solution/plugin to send out large number emails from a RoR application apart ActionMailer?
------------------------------------------------added :
We need to send out at least 1000 emails per 15 minutes . We are using a Notes Domino server as our smtp server .! what is the possible architecture for this kind of problem. We are already storing the emails in the database to send them later , but what is needed is the sending approach !
The usual thing is to create a background job to send email. ActionMailer is very good for single emails but does tend to run into trouble after sending multiple emails as each one can take several seconds to complete. That's why I created PostageApp to help solve those problems.
Some services on the market to help you with sending lots of email from Rails:
All of these have ways of sending multiple messages with a single API call or SMTP transaction.
这篇关于我们如何使用ruby on rails上的actionmailer每小时发送5000封电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!