Sha256: 893ec6d257ae78e0ef5b8694095b2a37667564fea7d8c6313f6922256688fa62
Contents?: true
Size: 665 Bytes
Versions: 7
Compression:
Stored size: 665 Bytes
Contents
class UserMailer < ActionMailer::Base default :from => Setting.first.try(:contact_email) ? Setting.first.try(:contact_email) : 'info@tenthousandhours.eu' # Subject can be set in your I18n file at config/locales/en.yml # with the following lookup: # # en.user_mailer.password_reset.subject # def password_reset(user) @user = user mail :to => user.email, :subject => t('authentication.password_reset_email_subject') + ' | ' + Setting.first.try(:site_name) end def password_set(user) @user = user mail :to => user.email, :subject => t('authentication.email_validation_subject') + ' | ' + Setting.first.try(:site_name) end end
Version data entries
7 entries across 7 versions & 1 rubygems