Sha256: 6076bf50751198db9574a7123d7967a5d64d859fd1520b0a724a5beb1055c8d4
Contents?: true
Size: 1.08 KB
Versions: 57
Compression:
Stored size: 1.08 KB
Contents
module Caboose class OrdersMailer < ActionMailer::Base default :from => Caboose::from_address.nil? ? 'caboose-store.actionmailer@gmail.com' : Caboose::from_address # Sends a confirmation email to the customer about a new order def customer_new_order(order) @order = order mail(:to => order.customer.email, :subject => 'Thank you for your order!') end # Sends a notification email to the fulfillment dept about a new order def fulfillment_new_order(order) @order = order mail(:to => Caboose::fulfillment_email, :subject => 'New Order') end # Sends a notification email to the shipping dept that an order is ready to be shipped def shipping_order_ready(order) @order = order mail(:to => Caboose::shipping_email, :subject => 'Order ready for shipping') end # Sends a notification email to the customer that the status of the order has been changed def customer_status_updated(order) @order = order mail(:to => order.customer.email, :subject => 'Order status update') end end end
Version data entries
57 entries across 57 versions & 1 rubygems