Skip to main content

Old Rails 2 Delayed_Job User_Mailer Question

General • Asked by Ja Ku

So I'm having an interesting issue. I'm trying to get this gem delayed_job to send an invitation email to sign up to an email address. The process seems to be working, and it is telling me that the email has been sent, however.. I receive no email,

https://gist.github.com/anonymous/b590f628918fa474d64ef749fe3e11ba#file-connexion_request_controller-rb-L39

This is a link to the related files that interact with each other as well as some command line stuff to show ho the delayed job is processing, and lying to me.

I need help figuring out why the email isn't actually sending. If you have any questions to help clarify the information I have given, please ask so I can help you help me.


It's been a really long time since I've used Delayed Job, but here's what I'd do:

  1. Try checking for DelayedJob errors. I'm not sure how you do this, but they are either logged in the database or in your Rails log file I'd guess. I'm sure you can find information on this on their Readme/Wiki or on Google.
  2. If you don't find anything, you can try running the same code that your background job does, but manually in the Rails console in production. You'll then know if your code was wrong if that succeeds or not. Chances are there's some sort of SMTP authentication issue or something.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.