Class: ReceiptMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/forge/app/mailers/receipt_mailer.rb

Instance Method Summary collapse

Instance Method Details

#receipt(order) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/forge/app/mailers/receipt_mailer.rb', line 7

def receipt(order)
  @order = order
  if MySettings.bcc_receipt_email.blank?
    mail(:to => @order.billing_address.email, :subject => "#{MySettings.site_title} :: Receipt for your order")
  else
    mail(:to => @order.billing_address.email, :bcc => MySettings.bcc_receipt_email, :subject => "#{MySettings.site_title} :: Receipt for your order")
  end
end