| delivery_method |
发送邮件的方法
● 默认: :smtp
● 可设定值
| :smtp |
经smtp服务器发送 |
| :sendmail |
用sendmail命令 |
| :file |
把邮件作为文件保存 |
| :test |
测试模式
(把邮件已数组形式返回)
|
|
| default_options |
默认的邮件header |
| interceptors |
应用的interceptor |
| perform_deliveries |
delivery方法是否实际发送邮件
● 默认: true
|
| raise_delivery_errors |
邮件发送失败时是否抛出error
● 默认: true
|
| show_previews |
mail preview功能是否有效
● 默认: development环境 true
test/product环境 false
|
| smtp_settings |
smtp模式下的设定
| address |
smtp服务器的主机名
默认 localhost
|
| port |
smtp服务器的port
默认: 25
|
| domain |
HELO domain
默认: localhost.localdomain
|
| user_name |
用户名 |
| password |
密码 |
| authentication |
认证方法
:plain, :login, :cram_md5
|
|
| sendmail_settings |
sendmail模式下的设定
| location |
命令的位置
默认: /usr/bin/sendmail
|
| arguments |
sendmail命令的选项
默认: -i -t
|
|
| file_settings |
file模式下的设定
| location |
信息的保存位置
默认: #{Rails.root}/tmp/mails
|
| |
|
|
| |
|