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

Version Path
spree_emails-4.10.1 app/mailers/spree/shipment_mailer.rb
spree_emails-4.10.0 app/mailers/spree/shipment_mailer.rb
spree_emails-4.9.0 app/mailers/spree/shipment_mailer.rb
spree_emails-4.8.3 app/mailers/spree/shipment_mailer.rb
spree_emails-4.8.2 app/mailers/spree/shipment_mailer.rb
spree_emails-4.7.3 app/mailers/spree/shipment_mailer.rb
spree_emails-4.6.6 app/mailers/spree/shipment_mailer.rb
spree_emails-4.5.5 app/mailers/spree/shipment_mailer.rb
spree_emails-4.5.4 app/mailers/spree/shipment_mailer.rb
spree_emails-4.6.5 app/mailers/spree/shipment_mailer.rb
spree_emails-4.7.1 app/mailers/spree/shipment_mailer.rb
spree_emails-4.6.4 app/mailers/spree/shipment_mailer.rb
spree_emails-4.7.0 app/mailers/spree/shipment_mailer.rb
spree_emails-4.6.3 app/mailers/spree/shipment_mailer.rb
spree_emails-4.6.2 app/mailers/spree/shipment_mailer.rb
spree_emails-4.6.1 app/mailers/spree/shipment_mailer.rb
spree_emails-4.6.0 app/mailers/spree/shipment_mailer.rb
spree_emails-4.5.3 app/mailers/spree/shipment_mailer.rb
spree_emails-4.5.2 app/mailers/spree/shipment_mailer.rb
spree_emails-4.5.1 app/mailers/spree/shipment_mailer.rb