Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 ActionMailer 脚本看起来非常好。但是,当我尝试从控制台发送时出现错误。我在 Ubuntu 10.04 上。任何想法都会有所帮助。
找不到命令:/usr/sbin/sendmail -i -t
这可能是因为您没有安装 MTA。您可以考虑使用 ssmtp 之类的东西将您的邮件发送到一个可以将您的出站邮件排队的真实邮件程序。
请注意,该程序不会在网络故障的情况下排队邮件,它需要能够在所有情况下传递邮件。如果这解决了问题,那么请考虑安装更重量级的东西,例如 qmail 或 postfix。
如果您已经安装了 MTA,请在 /usr/lib/sendmail 中检查它,如果它在那里,则只需使用以下符号链接它: