开发者

Problem with sendmail while using ActionMailer

开发者 https://www.devze.com 2023-01-10 06:38 出处:网络
My ActionMailer scripts look perfectly fine. However when I try to send from the console I get the error.I\'m on Ubuntu 10.04. Any ideas would be helpful.

My ActionMailer scripts look perfectly fine. However when I try to send from the console I get the error.I'm on Ubuntu 10.04. Any ideas would be helpful.

开发者_如何学Go

command not found: /usr/sbin/sendmail -i -t


This is probably because you don't have a MTA installed. You could look at using something like ssmtp to just deliver your mail to a real mailer that can queue your outbound mail.

Be warned that this program will not queue mail in the case of a network failure, it needs to be able to deliver mail in all circumstances. If this solves the problem then consider installing something more heavyweight such as qmail or postfix.

If you already have a MTA installed then check for it in /usr/lib/sendmail, if it's there then simply symlink it with:

ln -s /usr/lib/sendmail /usr/sbin

0

精彩评论

暂无评论...
验证码 换一张
取 消