Title / Description
Code class ForgotPasswordMailer < ActionMailer::Base def forgot_password(password, _somethine) setup_email(password.user) @subject += 'You have requested to change your password' @body[:url] = "http://sciibzsv01.greatsimplex.com#{ENV['RAILS_URL_ROOT']}/change_password/#{password.reset_code}" end def reset_password(user, password) setup_email(user) @body[:password] = password @subject += 'Your password has been reset.' end protected def setup_email(user) @recipients = "#{user.email}" @from = "sanjose-mgmt@simplex-cn.co.jp" @subject = "[HORUS] " @sent_on = Time.now @body[:user] = user end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code