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
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAC5Qo_0pqb2e%2BCgmeR76MxFSYGgpTz_pOmS1gditbzs%2BOMW7dA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment