在config中
cp configuration.yml.example configuration.yml
在configuration.yml
default中 email_delivery项全部注掉
production 中加入
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.exmail.qq.com
port: 25
authentication: :login
domain: qq.com
user_name: email@addr.com
password: passwd
注意default中注掉,否则会:getaddrinfo: Name or service not known