2
我得到了这个SMTP服务器地址:klee.cdlib.org(我们的防火墙后面,并且不需要密码/登录),并在那里我开发的应用程序正在运行我自己的本地地址是http://128.48.204.195:3000我的Rails SMTP配置有什么问题?
这里是我当前的配置中该development.rb文件:
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "klee.cdlib.org",
:port => 587,
:domain => 'klee.cdlib.org', #'http://128.48.204.195:3000',
# :user_name => '',
# :password => '',
:authentication => 'plain',
:enable_starttls_auto => true }
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
这给出了一个错误:
Net::SMTPFatalError (550 5.7.1 <[email protected]>... Relaying denied
我也不能确定域名和地址字段之间的区别。应该在哪些方面? :)还有什么我可能做错了得到这个错误?
谢谢, 亚历克斯
同意。除非SMTP服务器仅仅因为发送无效的电子邮件而导致错误,否则很可能是SMTP服务器的垃圾邮件控制策略禁止来自您的域的电子邮件。最简单的解决方案是更改您的SMTP服务器。 (Gmail是一个不错的选择) 更多信息:http://www.eudora.com/techsupport/kb/1593hq.html – 2011-12-19 00:04:03