views:

61

answers:

1

Hi everyone (: I want to use delayed_job to send email in backend, this is /config/initializers/setup_mail.rb

ActionMailer::Base.smtp_settings = {  
    :address              => "smtp.gmail.com",
    :port                 => 587, 
    :domain               => DOMAIN,  
    :user_name            => USERNAME,  
    :password             => PASSWORD,  
    :authentication       => "plain",  
    :enable_starttls_auto => true
}

so I want to know how to configure the delayed_job to send mail in backend.Thank you.

A: 

This site walks through the whole process: http://www.magnionlabs.com/2009/2/28/background-job-processing-in-rails-with-delayed_job

Unless I'm misunderstanding what you're asking?

jasonpgignac