轨道 3 +雪豹上的 sendmail

发布于 2025-01-08 04:06:36 字数 1256 浏览 4 评论 0原文

这是我的 development.rb 文件配置,用于操作邮件程序

config.action_mailer.delivery_method = :sendmail config.action_mailer.raise_delivery_errors = true config.action_mailer.perform_deliveries = true

在 ubuntu 上一切正常,但在雪豹上它什么也不做。 这是终端的 WEBrick 输出

Sent mail to [email protected] (840ms)
Date: Thu, 23 Feb 2012 21:36:00 +0200
from: Notificari eCatalog [email protected]
To: [email protected]
Message-ID: <[email protected]>
Subject: Notificare Ecatalog
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Completed 200 OK in 3448ms (Views: 122.1ms | ActiveRecord: 164.8ms)

This is my development.rb file configs for action mailer

config.action_mailer.delivery_method = :sendmail
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true

Everything works on ubuntu but on snow leopard it does nothing .
This is the WEBrick output from the Terminal

Sent mail to [email protected] (840ms)
Date: Thu, 23 Feb 2012 21:36:00 +0200
from: Notificari eCatalog [email protected]
To: [email protected]
Message-ID: <[email protected]>
Subject: Notificare Ecatalog
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Completed 200 OK in 3448ms (Views: 122.1ms | ActiveRecord: 164.8ms)

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

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

发布评论

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

评论(1

漫漫岁月 2025-01-15 04:06:36

您究竟期望这里发生什么?除非您的 Mac postfix 客户端配置了中继主机以连接到整个互联网并执行投递,否则您通过 sendmail 在本地投递的邮件根本不会投递到任何地方。正如您所注意到的,您可以在 WEBrick 的输出中查看邮件来验证其内容,但除非您采取进一步的步骤,否则它将不会被发送。

What exactly are you expecting to happen here? Unless your Mac postfix client is configured with a relayhost to connect to the Internet at large and perform deliveries, mail that you deliver through sendmail locally won't be delivered anywhere at all. As you noticed, you can see the mail in WEBrick's output to verify its content, but unless you take further steps it won't be delivered.

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