Sha256: cdd1afd730f9e74f49bc638dd7f9524092866617a49e94a6a5f3ca1d5c71333b

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 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, subject: subject)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_core-1.0.0.pre app/mailers/spree/carton_mailer.rb