Displaying 1 result from an estimated 1 matches for "verify_cod".
Did you mean:
verify_code
2013 Sep 11
2
Mandrill mail problem
...er.smtp_settings = {
:address => "smtp.mandrillapp.com",
:port => 587,
:user_name => ENV["some email"],
:password => ENV["api key"],
:authentication => ''login''
}
In mailer.rb:-
def verify_code(user)
mail(:to => user.email, :subject => "TEXT") do |format|
format.html
end
end
In controller:-
UserMailer.verify_code(resource).deliver # Here resource is the user object
What am I doing wrong here?
Thanks,
Avinash
--
You received this message because...