Sha256: 8a4cf0fa195ba02e7be7ee549191274980f8270c9355655574659c2315575970
Contents?: true
Size: 572 Bytes
Versions: 21
Compression:
Stored size: 572 Bytes
Contents
module Spree class ShipmentMailer < BaseMailer def shipped_email(shipment, resend = false) @shipment = shipment.respond_to?(:id) ? shipment : Spree::Shipment.find(shipment) @order = @shipment.order current_store = @shipment.store subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '') subject += "#{current_store.name} #{Spree.t('shipment_mailer.shipped_email.subject')} ##{@order.number}" mail(to: @order.email, from: from_address, subject: subject, store_url: current_store.url, reply_to: reply_to_address) end end end
Version data entries
21 entries across 21 versions & 1 rubygems