I use delayed_job to send a greeting message asynchronously, and it seems that the attachments in my email are not sent when I delay them.
If I use the code UserMailer.welcome_email(@user).deliver , the message will be sent with attachments, and the logs indicate that the message is sent as a multi-page letter.
But if I use the code UserMailer.delay.welcome_email(@user) , the mail will be sent, but without attachments, and the logs do not indicate that the message is sent as a multi-page letter.
Do I need to set up something special for it to work? I am on Rails 3.0.9 and delayed_job 2.1.4.
Thanks!
source share