小编use*_*697的帖子

发送邮件时发生错误(SSL_connect返回= 1 errno = 0状态= SSLv2/v3读取服务器问候A:未知协议)

configuration.yml

development:
   email_delivery:
     delivery_method: :smtp
     smtp_settings:
      #tls: true
       #enable_starttls_auto: true
       openssl_verify_mode: 'none'
       address: "domain name" 
       port: 25
       authentication: :login
       domain: 'mail domail name'
       user_name: 'mail id'
       password: 'pwd'
Run Code Online (Sandbox Code Playgroud)

此代码用于发生以下错误

发送邮件时发生错误:

SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol


development:
email_delivery:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
openssl_verify_mode: 'none'
address: "domain name" 
port: 587
authentication: :login
domain: 'mail domail name'
user_name: 'mail id'
password: 'pwd'
Run Code Online (Sandbox Code Playgroud)

此代码用于发生以下错误

发送邮件时发生错误:

No connection could be made because the target machine actively refused …

ruby-on-rails redmine

4
推荐指数
1
解决办法
6891
查看次数

标签 统计

redmine ×1

ruby-on-rails ×1