cerebris/delayed_mailhopper — Issue #2: how to write code for delayed mailhopper
Author: chaomao
Created: 2012-02-09 06:00:20+00:00
State: open

Hi guys, after some configuration follow read me, I want to ask you question about how to write code for delayed mailhopper?

I write these code for active mailer :

#define mailer class

class CandidateMailer < ActionMailer::Base
default from: "xxx@gmail.com"

def registration_confirmation(candidate)
@candidate = candidate
mail(:to => candidate.email, :subject => "xxx")
end
end

#send email
CandidateMailer.registration_confirmation(candidate).deliver

and I wonder what kind of code do I need if I use delayed mailhopper?
Thanks for reply.