Sam Kong
2011-Feb-18 17:42 UTC
ActionMailer: hostname was not match with the server certificate
Hi, I am setting up SMTP for my Rails 3 App. This configuration works. ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "mydomain.com", :user_name => "<username>", :password => "<password>", :authentication => "plain", :enable_starttls_auto => true } But this configuration doesn''t. It gives "hostname was not match with the server certificate" ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "some_other_server.com", :port => 587, :domain => "mydomain.com", :user_name => "<username>", :password => "<password>", :authentication => "plain", :enable_starttls_auto => true } Strangely, the same configuration works in Rails 2.3.8. (:tls => true) What''s wrong? Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Apparently Analagous Threads
- ActionMailer : Not able to send out mails
- Ruby 1.8.7 + Rails 2.3.2 + TLS = Where's the documentation?
- Errno::ECONNREFUSED (Connection refused - connect(2)): sending email in production
- Rails 3 Action Mailer issue
- help debugging ActionMailer with restful_authentication?