【问题标题】:Can't send php mail() [closed]无法发送 php mail() [关闭]
【发布时间】:2013-12-20 07:45:39
【问题描述】:

我刚迁移到新服务器,显然我无法发送邮件。 我在那里安装了“ipb board”,每次发送邮件时,我都会在 error_log 中得到以下信息

`sh: -t: command not found`

ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Dec 19 22:57 /usr/sbin/sendmail -> /etc/alternatives/mta

rpm -qa | grep send
sendmail-milter-8.14.4-8.el6.x86_64
sendmail-8.14.4-8.el6.x86_64
sendmail-cf-8.14.4-8.el6.noarch

【问题讨论】:

    标签: php linux email sendmail


    【解决方案1】:

    为了解决这个问题,我在 php.ini 中添加了sendmail_path = /usr/sbin/sendmail -t -i

    【讨论】:

      猜你喜欢
      • 2011-10-02
      • 1970-01-01
      • 2011-08-13
      • 1970-01-01
      • 2015-02-02
      • 1970-01-01
      • 2012-12-08
      • 2011-04-21
      相关资源
      最近更新 更多