轨道 3 +雪豹上的 sendmail
这是我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您究竟期望这里发生什么?除非您的 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.