Class: Workarea::Storefront::AccountMailer

Inherits:
ApplicationMailer show all
Includes:
TransactionalMailer
Defined in:
app/mailers/workarea/storefront/account_mailer.rb

Instance Method Summary collapse

Methods included from TransactionalMailer

#check_if_enabled

Methods inherited from ApplicationMailer

#path_to_url

Instance Method Details

#creation(user_id) ⇒ Object



8
9
10
11
12
# File 'app/mailers/workarea/storefront/account_mailer.rb', line 8

def creation(user_id)
  @user = User.find(user_id)
  @content = Content::Email.find_content('account_creation')
  mail(to: @user.email, subject: t('workarea.storefront.email.account_created.subject'))
end

#password_reset(password_reset_id) ⇒ Object



14
15
16
17
18
# File 'app/mailers/workarea/storefront/account_mailer.rb', line 14

def password_reset(password_reset_id)
  @reset = User::PasswordReset.find(password_reset_id)
  @content = Content::Email.find_content('password_reset')
  mail(to: @reset.user.email, subject: t('workarea.storefront.email.password_reset.subject'))
end