Internal Server Error 500, PHP mail()Wednesday 25 Jul 2007 19:39 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.
$subject = "test";
$msg = "hello";
mail($to, $subject, $msg);
?>
Another reason can be problems with a .htaccess file somewhere in the path to your script. Comments (0) | Show channel: 25 Jul 2007 Internal Server Error 500, PHP mail() 23 Jul 2007 Xbox online lobbies rife with rumours 17 Jul 2007 Xbox 360: Ruins, Map Pack 3 for Lost Planet 16 Jul 2007 Xbox 360: Lost Planet, Battleground Map 08 Jul 2007 Xbox 360 Wireless Headset review 06 Jul 2007 XLeague.tv: The Match 05 Jul 2007 Fonejacker 27 Jun 2007 Flooding hits North of England 25 Jun 2007 Mariel Rodriguez in Maxim Magazine June 2007 23 Jun 2007 Sky add 2 more movie channels 17 Jun 2007 How to remove SpyLocked for free |