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