Class: Spree::TestMailer

Inherits:
BaseMailer
  • Object
show all
Defined in:
app/mailers/spree/test_mailer.rb

Instance Method Summary collapse

Methods inherited from BaseMailer

#from_address, #mail, #money

Instance Method Details

#test_email(email) ⇒ Object



5
6
7
8
9
10
11
# File 'app/mailers/spree/test_mailer.rb', line 5

def test_email(email)
  Spree::Deprecation.warn("Spree::TestMailer has been deprecated and will be removed with Solidus 3.0")

  store = Spree::Store.default
  subject = "#{store.name} #{t('.subject')}"
  mail(to: email, from: from_address(store), subject: subject)
end