I have my production app running on AWS
but am having issues with the active job - deliver_later
on certain mailers. I am successfully sending all emails with deliver_later
in development but there is something different in production. Certain mailers work with deliver_later
but not my welcome mailer (welcomes new users). So I have to set deliver_now
on this welcome mailer to have it actually send the email.
//doesn't work, email is not sent
UserMailer.welcome_email(self).deliver_later
//works
UserMailer.welcome_email(self).deliver_now
The log file from the server show this and nothing more when I use deliver_later
:
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d7114-464e-4a90-9721-126650) to Async(mailers) with arguments: "UserMailer", "welcome_email", "deliver_now", #>
Any help would be appreciated. Thanks.