PHP mail() timeout

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

    I've been searching for this particular error and have found that it can be caused by a variety of things. I do not know what you have already tried to do to fix it, but here are some suggestions as to what might help:

    • Make sure to start with and end with ?>
    • Make sure to chmod the file to 755
    • Try to include an output of some sort (eg. print "Mail sent.")

    There's also another question about this subject here on SO: PHP Mail Function Causes Error - The owner stated that a change of server with the same setup resulted in a working mail() function, which could indicate a problem with the host.

提交回复
热议问题