Here's the error i got today, while testing my application online :
OpenSSL::SSL::SSLError (hostname was not match with the server
certificate)
A way to fix this issue is to set enable_starttls_auto to false. Therefore i use a before_filter in my ApplicationController
class ApplicationController < ActionController::Base
before_filter :set_mailer_options
protected
def set_mailer_options
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => false,
:domain => "yourhost.com"
}
end
end
That's it, ActionMailer will never ever try to connect to your mail server with TLS again.
