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, #money

Instance Method Details

#test_email(mail_method, user) ⇒ Object



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

def test_email(mail_method, user)
  @mail_method = mail_method
  subject = "#{Spree::Config[:site_name]} #{t('test_mailer.test_email.subject')}"
  mail(:to => user.email, :from =>from_address, :subject => subject)
end