`
qwlong
  • 浏览: 29827 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ActionMailer: Hostname not match server certificate

阅读更多
ActionMailer: Hostname not match server certificate 错误的解决办法

解决办法:
development.rb
require 'tlsmail'
  config.action_mailer.delivery_method = :smtp
  ActionMailer::Base.smtp_settings = {
      :address => '',
      :port => 25,
      :domain => '',
      :authentication => :login,
      :user_name => '',
      :password => '',
      :enable_starttls_auto => true
  }

Gemfile

gem 'tlsmail'
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics