Sha256: 7fbd3f4001579f6a266816ca5717679060042c10122351bf7228d8c3c044e78a

Contents?: true

Size: 899 Bytes

Versions: 1

Compression:

Stored size: 899 Bytes

Contents

module Shoppe
  class OrderMailer < ActionMailer::Base
  
    default :from => "#{Shoppe.config[:store_name]} <#{Shoppe.config[:email_address]}>"
  
    def received(order)
      @order = order
      mail :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.subject', :default => "Order Confirmation")
    end
  
    def accepted(order)
      @order = order
      mail :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.accepted', :default => "Order Accepted")
    end
  
    def rejected(order)
      @order = order
      mail :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.rejected', :default => "Order Rejected")
    end
  
    def shipped(order)
      @order = order
      mail :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.shipped', :default => "Order Shipped")
    end
  
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppe-0.0.15 app/mailers/shoppe/order_mailer.rb