Class: UserMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- UserMailer
- Defined in:
- app/mailers/user_mailer.rb
Instance Method Summary collapse
-
#password_reset(user) ⇒ Object
Subject can be set in your I18n file at config/locales/en.yml with the following lookup:.
Instance Method Details
#password_reset(user) ⇒ Object
Subject can be set in your I18n file at config/locales/en.yml with the following lookup:
en.user_mailer.password_reset.subject
10 11 12 13 |
# File 'app/mailers/user_mailer.rb', line 10 def password_reset(user) @user = user mail :to => user.email, :subject => t('authentication.password_reset_email_subject') + ' | ' + Setting.first.try(:site_name) end |