【发布时间】:2018-02-08 20:07:40
【问题描述】:
我正在尝试在 localhost 中触发一个邮件程序,我可以让它与 gmail 一起使用,但不能与我自己托管在 Linux Cpanel Godaddy 服务器中的电子邮件一起使用。这是我的 development.rb 配置:
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: 'smtpout.secureserver.net',
domain: 'mail.[mydomain].com',
port:25,
authentication: 'login',
user_name:'no-reply@[mydomain].mx',
password:'mypassword',
enable_starttls_auto: true
}
【问题讨论】:
标签: ruby-on-rails email smtp mailer emailrelay