JiggaMan08 Posted January 8, 2007 Share Posted January 8, 2007 Hi all,I am having an issue with a client of mine. He wants a form on his site, so I installed one I have used in the past (one I know works).It seems as though when I use the email that is hosted on the same server as the website, it doesn't work. But if I change the email to a hotmail or yahoo, anywhere that's not on that one server, it works. Any idea how to fix this problem?Here is the php file I use to send mail.[code]<? $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; if (!isset($_REQUEST['email'])) { header( "Location: index.php?page=contact" ); } elseif (empty($email) || empty($message)) { header( "Location: index.php?page=error" ); } else { mail( "[email protected]", "$name's Feedback", $message, "From: $email" ); header( "Location: index.php?page=thanks" ); } ?>[/code] Link to comment https://forums.phpfreaks.com/topic/33277-cant-submit-form-to-specific-server-hosted-email/ Share on other sites More sharing options...
hvle Posted January 8, 2007 Share Posted January 8, 2007 Server probably use old version of PHP or super global was not on.$_REQUEST added in 4.10, and you should never use it.change all $_REQUEST to $_POST if it was post form,or to $_GET if you used get method. Link to comment https://forums.phpfreaks.com/topic/33277-cant-submit-form-to-specific-server-hosted-email/#findComment-155454 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.