PHP mail() timeout

后端 未结 5 1629
遇见更好的自我
遇见更好的自我 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:17

    Do not rely on mail() as it is unreliable and leads to issues just like these. I've used phpMailer for years quite happily.

    If you persist on mail() then check your settings in php.ini (explained at http://www.quackit.com/php/tutorial/php_mail_configuration.cfm). Note that usually CLI has a different php.ini than FastCGI.

    Some more common problems:

    • FastCGI doesn't have permissions to use sendmail

    • Memory limit with large attachments

提交回复
热议问题