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

- (Object) test_email(email)



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} #{Spree.t('test_mailer.test_email.subject')}"
  mail(to: email, from: from_address(store), subject: subject)
end