Ask A Question

Notifications

You’re not receiving notifications from this thread.

Old Rails 2 Delayed_Job User_Mailer Question

Ja Ku asked in General

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.

Reply

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.
Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.