Sha256: 1300bc4c6ffe5e941fe1c2667a3ff7644a22c82eb67fd76a5280653fe6c4cc70
Contents?: true
Size: 550 Bytes
Versions: 12
Compression:
Stored size: 550 Bytes
Contents
module Spree class CartonMailer < BaseMailer # Send an email to customers to notify that an individual carton has been # shipped. def shipped_email(carton_id, resend: false) @carton = Spree::Carton.find(carton_id) subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '') subject += "#{Spree::Store.current.name} #{Spree.t('shipment_mailer.shipped_email.subject')} ##{@carton.order_numbers.join(', ')}" mail(to: @carton.order_emails, from: from_address(Spree::Store.current), subject: subject) end end end
Version data entries
12 entries across 12 versions & 1 rubygems