Class: OrderMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- OrderMailer
- Defined in:
- app/mailers/order_mailer.rb
Instance Method Summary collapse
Instance Method Details
#cancel_email(order, resend = false) ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/mailers/order_mailer.rb', line 12 def cancel_email(order, resend=false) @order = order subject = (resend ? "[RESEND] " : "") subject += "#{Spree::Config[:site_name]} #{t('subject', :scope => 'order_mailer.cancel_email')} ##{order.number}" mail(:to => order.email, :subject => subject) end |
#confirm_email(order, resend = false) ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/mailers/order_mailer.rb', line 4 def confirm_email(order, resend=false) @order = order subject = (resend ? "[RESEND] " : "") subject += "#{Spree::Config[:site_name]} #{t('subject', :scope =>'order_mailer.confirm_email')} ##{order.number}" mail(:to => order.email, :subject => subject) end |