PHP mail() timeout

后端 未结 5 1637
遇见更好的自我
遇见更好的自我 2021-02-13 23:17

First a few infos:

  • Debian Squeeze
  • PHP 5.3.3
  • PHP with mod_cgi
  • I absolutely HAVE to use mail() in this case. For all my other
5条回答
  •  青春惊慌失措
    2021-02-14 00:24

    Most likely you use 2 different php.ini versions. one for cli and one for cgi. Debian have this setup i believe.

    • /etc/php5/cgi/php.ini
    • /etc/php5/cli/php.ini

    Make sure that your cli and cgi versions have the same email configuration and it will work.

    The mail configuration key is: [mail function]

    Another possibility is that your web user does't have access to execute sendmail.

    Also check spool permissions (updated)

提交回复
热议问题