title: Rails Action Mailer with delayed job not sending email
body: <p>So I'm trying to use delayed job with action mailer in my app and I've tested both locally and production and the email job is created and executed but the email is not being sent.</p>
  
  <p>When I don't use delayed job and just use .deliver it works just fine.</p>
  
  <p>The code for sending the email:</p>
  
  <pre><code>UserMailer.delay.followed_you(user)
  </code></pre>
  
  <p>In my console when I run <code>Delayed::Job.all</code> I see the job being enqueued. Then when I run <code>rake jobs:work</code> I see the job being executed successfully:</p>
  
  <pre><code>[Worker(host:f595047e-4de8-4247-8cdb-098774814694 pid:3)] Starting job worker
  [Worker(host:f595047e-4de8-4247-8cdb-098774814694 pid:3)] Job Class#followed_you (id=10326) RUNNING
  [Worker(host:f595047e-4de8-4247-8cdb-098774814694 pid:3)] Job Class#followed_you (id=10326) COMPLETED after 0.1035
  [Worker(host:f595047e-4de8-4247-8cdb-098774814694 pid:3)] 1 jobs processed at 4.4194 j/s, 0 failed
  </code></pre>
  
  <p>But the email is never sent. My guess is it has to do with SMTP settings not being loaded in the delayed job? Any help would be appreciated.
  I'm using rails 4.0.13 and delayed job 4.0.2</p>