在
configuration.yml中修改配置为:
default:
# Outgoing emails configuration
# See the examples below and the Rails guide for more configuration options:
# http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
email_delivery:
delivery_method: :smtp #此处可以改为async_smtp(异步发送邮件)
smtp_settings:
address: "smtp.163.com"
port: 25
domain: "smtp.163.com"
authentication: :login
user_name: "youremail@163.com"
password: "yourpassword"
……
需要注意的是,address、domain、user_name、password等需要加引号。
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。