Class: CartMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- CartMailer
- Defined in:
- app/mailers/cart_mailer.rb
Instance Method Summary collapse
Instance Method Details
#paid(order) ⇒ Object
5 6 7 8 |
# File 'app/mailers/cart_mailer.rb', line 5 def paid(order) @order = order mail(:subject => "#{order.name} paid for their order.") end |
#shipped(order) ⇒ Object
10 11 12 13 |
# File 'app/mailers/cart_mailer.rb', line 10 def shipped(order) @order = order mail(:to => order.email, :reply_to => APP_CONFIG[:contact_email], :subject => "Your order from #{APP_CONFIG[:app_name]} has been shipped.") end |