尝试发送on Rails的电子邮件的形式Ruby,但得到这个:rails邮件错误 - 530-5.5.1需要验证。
SocketError in UsersController#create
getaddrinfo: nodename nor servname provided, or not known
我的环境/ development.rb文件有:
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "my_company.org",
authentication: "plain",
enable_starttls_auto: true,
user_name: "[email protected]_company.org",
password: "my_pass"
}
和
config.action_mailer.delivery_method = :smtp
和
config.action_mailer.default_url_options = { :host => 'localhost:5000' }
# 5000 rather than 3000 as I am using foreman.
我有同样的'530-5.5.1',但.. facepalm ..我的user_name是空白的。所以这是首先要检查的东西! – 2013-03-27 05:45:06