use*_*697 4 ruby-on-rails redmine
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 it. - connect(2)
development:
email_delivery:
delivery_method: :async_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)
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)
此代码使用redmine版本2.2.3来使用精细的工作.但版本2.3.0现在使用不起作用.
在与这个问题斗争了几个小时之后,这就是我想出来的(适合我)
email_delivery:
delivery_method: smtp
smtp_settings:
openssl_verify_mode: none
tls: false
enable_starttls_auto: true
address: smtp.xxx.xx
port: 587
domain: xxx.xx
authentication: login
user_name: "xxx@xxx.xx"
password: xxx
Run Code Online (Sandbox Code Playgroud)
确保地址与域匹配,并且可以解析
| 归档时间: |
|
| 查看次数: |
6891 次 |
| 最近记录: |