Class: TbCommerce::OrderMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- TbCommerce::OrderMailer
- Defined in:
- app/mailers/tb_commerce/order_mailer.rb
Instance Method Summary collapse
-
#order_confirmation(order) ⇒ Object
Send a receipt to the user who placed the order.
-
#order_placed(order) ⇒ Object
Send an email to the configured admin address.
-
#order_shipped(order) ⇒ Object
Send an email to the user with shipping information.
Instance Method Details
#order_confirmation(order) ⇒ Object
Send a receipt to the user who placed the order
13 14 15 16 |
# File 'app/mailers/tb_commerce/order_mailer.rb', line 13 def order_confirmation(order) @order = order mail(:to => order.email, :from => Spud::Core.config.from_address) end |
#order_placed(order) ⇒ Object
Send an email to the configured admin address
5 6 7 8 9 |
# File 'app/mailers/tb_commerce/order_mailer.rb', line 5 def order_placed(order) return if TbCommerce.config.order_placed_email.nil? @order = order mail(:to => TbCommerce.config.order_placed_email, :from => Spud::Core.config.from_address) end |
#order_shipped(order) ⇒ Object
Send an email to the user with shipping information
20 21 22 23 |
# File 'app/mailers/tb_commerce/order_mailer.rb', line 20 def order_shipped(order) @order = order mail(:to => order.email, :from => Spud::Core.config.from_address) end |