我在 Rails 4 生产模式中使用 SendGrid 时出现了 "OpenSSL::SSL::SSLError (hostname does not match the server certificate)" 的错误。
ActionMailer::Base.smtp_settings = {
:user_name => 'xxxx',
:password => 'xxxx',
:domain => 'moorem.com',
:address => 'smtp.sendgrid.net',
:port => 587,
:authentication => :plain,
:enable_starttls_auto => true
}
the following error getting
OpenSSL::SSL::SSLError (hostname does not match the server certificate):
app/controllers/pages_controller.rb:26:in `contact_create'