Sha256: 9e740b0466373b9504b4be3715a229bdd5de32b438c3c578bc382331da344c52

Contents?: true

Size: 327 Bytes

Versions: 14

Compression:

Stored size: 327 Bytes

Contents

module Spree
  class TestMailer < BaseMailer
    def test_email(user)
      recipient = user.respond_to?(:id) ? user : Spree.user_class.find(user)
      subject = "#{Spree::Store.current.name} #{Spree.t('test_mailer.test_email.subject')}"
      mail(to: recipient.email, from: from_address, subject: subject)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_core-2.3.13 app/mailers/spree/test_mailer.rb
spree_core-2.3.12 app/mailers/spree/test_mailer.rb
spree_core-2.3.11 app/mailers/spree/test_mailer.rb
spree_core-2.3.10 app/mailers/spree/test_mailer.rb
spree_core-2.3.9 app/mailers/spree/test_mailer.rb
spree_core-2.3.8 app/mailers/spree/test_mailer.rb
spree_core-2.3.7 app/mailers/spree/test_mailer.rb
spree_core-2.3.6 app/mailers/spree/test_mailer.rb
spree_core-2.3.5 app/mailers/spree/test_mailer.rb
spree_core-2.3.4 app/mailers/spree/test_mailer.rb
spree_core-2.3.3 app/mailers/spree/test_mailer.rb
spree_core-2.3.2 app/mailers/spree/test_mailer.rb
spree_core-2.3.1 app/mailers/spree/test_mailer.rb
spree_core-2.3.0 app/mailers/spree/test_mailer.rb