Class: ShoppingCart::CheckoutMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/shopping_cart/checkout_mailer.rb

Instance Method Summary collapse

Instance Method Details

#complete_emailObject



5
6
7
8
9
# File 'app/mailers/shopping_cart/checkout_mailer.rb', line 5

def complete_email
  @user = params[:user]
  @order = params[:order]
  mail(to: @user.email, subject: I18n.t('mail.thanks'))
end