Internal Server Error 500, PHP mail()

Wednesday 25 Jul 2007 19:39

Tags: PHP, error, mail()


500 - Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.


I came across this error today and it was not immediately obvious where it lies. In fact if you're using the mail() command, chances are that its been caused by you passing an empty 'to' parameter. For example, the following code with this deliberate mistake would cause the error message to be displayed.

Another reason can be problems with a .htaccess file somewhere in the path to your script.

Comments (0)

Show channel: