问题
I have a rails app that uses delayed_job.
Whilst DJ gives me a really easy way to setup delays on emails, is there any way to globally configure my app to send all email asynchronously regardless? The reason for this is that I have some gems that send email and don't want to have to modify them to accept DJ.
回答1:
Delayed job mailer looks like a good fit for what you want to do.
来源:https://stackoverflow.com/questions/3700788/how-to-send-all-email-from-a-rails-app-asynchronously