ActionMailer: Hostname not match server certificate 错误的解决办法
解决办法:
development.rb
[color=red]require 'tlsmail'[/color]
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => '',
:port => 25,
:domain => '',
:authentication => :login,
:user_name => '',
:password => '',
:enable_starttls_auto => true
}
Gemfile
[color=red]gem 'tlsmail'[/color]
解决办法:
development.rb
[color=red]require 'tlsmail'[/color]
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => '',
:port => 25,
:domain => '',
:authentication => :login,
:user_name => '',
:password => '',
:enable_starttls_auto => true
}
Gemfile
[color=red]gem 'tlsmail'[/color]