Internal Server Error 500, PHP mail()Wednesday 25 Jul 2007 18: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 (2) 9 Aug 2010 10:50 by Damage Thanks for pointing this out! I was building a tell a friend script for a site and I kept getting this error, it was like you said because there were no parameters being passed from the form to the script - by default dreamweaver adds a 2 on the end of your text box names if you have more than one form on the page! 30 Jun 2010 08:14 by Anibute I too had the problem. Empty 'to' parameter was the culprit. | 23 Oct 2011 Minecraft Chicken Grinder (Belle End Farm) 09 Oct 2011 How to Build a Minecraft Piston Mob Grinder 23 Jul 2011 Minecraft Piston Lighthouse 02 Jun 2011 Build a Minecraft Wizard Tower 15 Apr 2011 How to build a hollow sphere in Minecraft 25 Mar 2011 Package for iOS with AIR 2.6 10 Feb 2011 Create 3D Array in Actionscript 3 30 Jan 2011 How to build a Minecraft Mob Grinder 16 Jan 2011 Xbox Kinect distance from TV 05 Dec 2010 Minecraft vs Warcraft 09 Oct 2008 Tokyo Game Show 2008 |