开发者

Rails Action Mailer TLS Certificate Issues

I am trying to use rackspace ssl smtp for my mail settings for our rails application and I am receiving this error

hostname was not match wit开发者_StackOverflowh the server certificate

I need to find a way to disable verify on the certs for ActionMailer.

Anyone know how to do this?


Try setting enable_starttls_auto to false in your smtp_settings:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"

ActionMailer::Base.smtp_settings = {
  :address => 'server.com',
  :port => '25',
  :domain => 'yourdomain.com',
  :user_name => 'username',
  :password => 'password',
  :authentication => :login,
  :enable_starttls_auto => false
}


For some reason I can't comment on Derek's answer, but his answer does in fact work now with Rackspace. Simply changing tls to false now works great.


Resolved issue by using sendmail and configuring sendmail to use the proper smtp settings required to use rackspace email hosting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜