rails ActionMailer 使用SendCloud的配置

来源:互联网 发布:淘宝网怎么收藏宝贝 编辑:程序博客网 时间:2024/05/19 20:57
 delivery_method :smtp, {                                                               :address        => "smtp.sendcloud.net",                                             :port           => 25,                                                               :user_name      => "api_user",                             :password       => "api_key",                                                  :authentication => 'login'                                                     }

如果不使用

:authentication = > ‘login’

而是

authentication = > ‘login’

则会报错

hostname does not match the server certificate
原创粉丝点击