尝试使用远程smtp主机从我的RoR应用程序发送电子邮件。 这可以在我的本地服务器上进行生产和开发。
当我设置
http-sendrecv
为true我在日志
中收到此错误config.action_mailer.raise_delivery_errors
这是我的动作邮件设置
Error during failsafe response: 550-sender IP address xx.xx.xxx.xxx is part of Amazon AWS, and may not use this
/usr/local/lib/ruby/2.2.0/net/smtp.rb:964:in `check_response'
/usr/local/lib/ruby/2.2.0/net/smtp.rb:933:in `getok'
/usr/local/lib/ruby/2.2.0/net/smtp.rb:869:in `rcptto'
/usr/local/lib/ruby/2.2.0/net/smtp.rb:850:in `block in rcptto_list'
/usr/local/lib/ruby/2.2.0/net/smtp.rb:848:in `each'
/usr/local/lib/ruby/2.2.0/net/smtp.rb:848:in `rcptto_list'
我在生产环境中设置了此设置
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "smtp.thehostname.com",
port: 587,
domain: 'MyDomain.net',
user_name: 'MyUsername',
password: 'MyPassword',
authentication: 'plain',
enable_starttls_auto: true
}
有谁知道为什么我无法从亚马逊AWS发送邮件?