I want to be able to send a monthly email to users of my Rails app hosted on Heroku. However, the email must be customized based on each user's preferences. What's the best way to do this?
我想每月给Heroku上我的Rails应用的用户发一封邮件。但是,电子邮件必须根据每个用户的喜好进行定制。最好的方法是什么?
1 个解决方案
#1
1
Sendgrid does the grunt work. Of sending the emails. It's a paid add on.
Sendgrid做着繁重的工作。发送的电子邮件。这是付费的附加服务。
Since heroku only allows 30 sec of work per request, you need to use a delayed_job or similar to send out all the emails.
由于heroku每次请求只允许30秒的工作时间,所以需要使用delayed_job或类似的方法发送所有电子邮件。
You only need to run the worker on heroku when your job is running.
当你的工作在运行时,你只需要在heroku上运行工人。
#1
1
Sendgrid does the grunt work. Of sending the emails. It's a paid add on.
Sendgrid做着繁重的工作。发送的电子邮件。这是付费的附加服务。
Since heroku only allows 30 sec of work per request, you need to use a delayed_job or similar to send out all the emails.
由于heroku每次请求只允许30秒的工作时间,所以需要使用delayed_job或类似的方法发送所有电子邮件。
You only need to run the worker on heroku when your job is running.
当你的工作在运行时,你只需要在heroku上运行工人。