Class: Spree::UserMailer
- Inherits:
-
BaseMailer
- Object
- BaseMailer
- Spree::UserMailer
- Defined in:
- lib/mailers/spree/user_mailer.rb
Instance Method Summary collapse
- #confirmation_instructions(user, token, opts = {}) ⇒ Object
- #reset_password_instructions(user, token, opts = {}) ⇒ Object
Instance Method Details
#confirmation_instructions(user, token, opts = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mailers/spree/user_mailer.rb', line 13 def confirmation_instructions(user, token, opts = {}) @user = user @current_store = current_store(opts) @confirmation_url = spree.confirmation_url(confirmation_token: token, host: @current_store.url) @email = user.email mail to: user.email, from: from_address, reply_to: reply_to_address, subject: @current_store.name + ' ' + I18n.t(:subject, scope: [:devise, :mailer, :confirmation_instructions]), store_url: @current_store.url end |
#reset_password_instructions(user, token, opts = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/mailers/spree/user_mailer.rb', line 3 def reset_password_instructions(user, token, opts = {}) @user = user @current_store = current_store(opts) @edit_password_reset_url = edit_password_url(token, @current_store) mail to: user.email, from: from_address, reply_to: reply_to_address, subject: @current_store.name + ' ' + I18n.t(:subject, scope: [:devise, :mailer, :reset_password_instructions]), store_url: @current_store.url end |