delivery_method有效设置为以下四种:
:smtp
:async_smtp
:sendmail
:async_sendmail
其中以:async为前缀的是异步发送方式,建议大家配置为异步,否则会给redmine服务器压力
1、基本邮件配置
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.example.net
port: 25
domain: example.net
authentication: :login
user_name: redmine@example.net
password: redmine
2、gmail邮件配置
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: "smtp.gmail.com"
port: '587'
domain: "smtp.gmail.com"
authentication: :plain
user_name: "your_email@gmail.com"
password: "your_password"
3、无认证邮件配置
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.knology.net
port: 25
domain: cybersprocket.com
authentication: :none
4、通过sendmail邮件配置
production:
email_delivery:
delivery_method: :sendmail