Class: Spina::Shop::CustomerAccountMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Spina::Shop::CustomerAccountMailer
- Defined in:
- app/mailers/spina/shop/customer_account_mailer.rb
Instance Method Summary collapse
Instance Method Details
#forgot_password(customer_account) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/mailers/spina/shop/customer_account_mailer.rb', line 5 def forgot_password(customer_account) @customer_account = customer_account mail( to: @customer_account.email, from: "#{current_account.name} <#{current_account.email}>", subject: t('spina.shop.emails.forgot_password_title') ) end |
#welcome_email(customer_account) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'app/mailers/spina/shop/customer_account_mailer.rb', line 15 def welcome_email(customer_account) @customer_account = customer_account mail( to: customer_account.email, from: "#{current_account.name} <#{current_account.email}>", subject: t('spina.shop.emails.welcome_email_title') ) end |