Rails 应用程序不会在生产模式下发送电子邮件

发布于 2024-08-22 12:25:05 字数 130 浏览 3 评论 0原文

嘿,我正在使用 Rails 2.3.5 并使用 rufus 调度程序定期发送电子邮件。这在开发模式下工作得很好,但惊喜生产模式却出现了一些问题。我在开发和生产文件中设置了相同的 actionmailer 设置。我有什么遗漏的吗?

Hey, I'm using Rails 2.3.5 and using rufus scheduler to send periodic emails. This works fine in development mode, but surprise surprise production mode has borked something. I've set the same actionmailer settings in both development and production files. Is there something I am missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

山有枢 2024-08-29 12:25:06

嘿,是的,我想你是对的。这些设置被设置为像外部服务器一样访问服务器。我的意思是我更改了选项,例如本地主机的地址并注释掉其他选项。检查一下:

:address => "localhost", 
:port => 25, 
:domain => "www.mydomain.co.uk", 
#:authentication => :login, 
#:user_name => "blah", 
#:password => "blah" 

希望这对其他人有帮助。

hey, yes you're right i think. The settings were set to access the server as if it was external. By that I mean I changed options like the address to localhost and commenting out others. Check it out:

:address => "localhost", 
:port => 25, 
:domain => "www.mydomain.co.uk", 
#:authentication => :login, 
#:user_name => "blah", 
#:password => "blah" 

Hope this helps somebody else.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文