Class: Spree::OrderMailer

Inherits:
BaseMailer
  • Object
show all
Defined in:
app/mailers/spree/order_mailer.rb

Instance Method Summary (collapse)

Methods inherited from BaseMailer

#from_address, #mail, #money

Instance Method Details

- (Object) cancel_email(order, resend = false)



11
12
13
14
15
16
17
# File 'app/mailers/spree/order_mailer.rb', line 11

def cancel_email(order, resend = false)
  @order = order
  @store = @order.store
  subject = build_subject(Spree.t('order_mailer.cancel_email.subject'), resend)

  mail(to: @order.email, from: from_address(@store), subject: subject)
end

- (Object) confirm_email(order, resend = false)



3
4
5
6
7
8
9
# File 'app/mailers/spree/order_mailer.rb', line 3

def confirm_email(order, resend = false)
  @order = order
  @store = @order.store
  subject = build_subject(Spree.t('order_mailer.confirm_email.subject'), resend)

  mail(to: @order.email, from: from_address(@store), subject: subject)
end

- (Object) inventory_cancellation_email(order, inventory_units, resend = false)



19
20
21
22
23
24
25
# File 'app/mailers/spree/order_mailer.rb', line 19

def inventory_cancellation_email(order, inventory_units, resend = false)
  @order, @inventory_units = order, inventory_units
  @store = @order.store
  subject = build_subject(Spree.t('order_mailer.inventory_cancellation.subject'), resend)

  mail(to: @order.email, from: from_address(@store), subject: subject)
end