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



3
4
5
6
7
# File 'app/mailers/spree/test_mailer.rb', line 3

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