Class: SimpleSmtpTestMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- SimpleSmtpTestMailer
- Defined in:
- lib/simple_smtp_test/simple_smtp_test_mailer.rb
Instance Method Summary collapse
Instance Method Details
#test_email(to, body = 'This message was generated by the Simple SMTP Test program for Ruby on Rails.') ⇒ Object
4 5 6 7 8 |
# File 'lib/simple_smtp_test/simple_smtp_test_mailer.rb', line 4 def test_email(to, body='This message was generated by the Simple SMTP Test program for Ruby on Rails.') from = ENV['MAILER_FROM_EMAIL'] || '[email protected]' subject = 'This is a test email from Simple SMTP test' mail to:to, from:from, subject:subject, body:body end |