Forum: Ruby on Rails Logging message body from ActionMailer class

3272a1c6ef40f33c169fbf8fde60d867?d=identicon&s=25 Greg Akins (akinsgre)
on 2013-10-02 23:53
(Received via mailing list)
I'm writing a new mailer in an application ( Rails 3.0, Ruby 1.9.3)

While in other applications the body of sent emails show in the
development log, in this application they aren't and I can't tell
what's different.  Can anyone see what I'm doing wrong?

The email parts of my config are below:

require 'tlsmail'
  require 'openssl'
  OpenSSL::SSL::VERIFY_PEER =  OpenSSL::SSL::VERIFY_NONE
  Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
  ActionMailer::Base.delivery_method = :smtp
  # Don't care if the mailer can't send
  config.action_mailer.raise_delivery_errors = false
  config.action_mailer.perform_deliveries = true

  ActionMailer::Base.smtp_settings = {
    :enable_starttls_auto => true,
    :address              => "smtp.gmail.com",
    :port                 => 587,
    :tls                  => :true,
    :domain               => "gmail.com",
    :authentication       => "plain",
    :user_name            => "test@gmail.com",
    :password             => "password1"
  }
  config.action_mailer.default_url_options = { :host => 'localhost:3000'
}

Greg Akins
Insomnia Consulting, LLC
gakins@insomnia-consulting.org
724 454 7790 (cell)
http://www.linkedin.com/company/2942338?trk=tyah
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.