rails ActionMailer 使用SendCloud的配置

袁安志
2023-12-01
 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
 类似资料: