Jump to content



  • Please log in to reply
2 replies to this topic

#1 spramod

  • Members
  • Pip
  • Newbie
  • 4 posts

Posted 13 June 2006 - 02:57 PM

I have a problem with this form. I tried using this form to be posted from my website, it works fine on one server meaning, I receive the email when the 'TO' address is 'xyz@email.com', but on another server, where the email address is 'lmn@help.com', i dont receive the email.

Can anybody tell me what the problem is? I need to get this working on the server which I dont receive this form.
The code:

$request = array_map('trim',($_SERVER['REQUEST_METHOD'] == "POST") ? $_POST : $_GET) ;

//check for spam injection
$allfields = implode('',$request) ;
$nontext = $request ;
unset($nontext['message'] );
$nontextfields = implode ('',$nontext) ;
if ((strpos ($nontextfields,"\\r")!==false) ||
(strpos ($nontextfields,"\\n")!==false) ||
(strpos ($allfields,"Content-Transfer-Encoding")!==false) ||
(strpos ($allfields,"MIME-Version")!==false) ||
(strpos ($allfields,"Content-Type")!==false) ||
($request['checkfield']!=$check) ||
(empty($_SERVER['HTTP_USER_AGENT']))) die('Incorrect request') ; //stop spammers ?>

<?php include("connection.php");

$msg.="Name :\t$_POST[name]<br>";
$msg.="Telephone :\t$_POST[tel]<br>";
$msg.="Email :\t$_POST[email]<br>";

$subject= "Application Form" .$_POST['email'];
$headers.= "Reply-To: " .$_POST['email'];
$headers.="MIME-Version: 1.0\r\n";
$headers.="Content-type: text/html; charset=iso-8859-1\r\n";
$headers.="From:" .$_POST['email'];


Thanks every one for help..

#2 swatisonee

  • Members
  • PipPipPip
  • Advanced Member
  • 253 posts

Posted 14 June 2006 - 04:23 PM

Could the other server have blocked emails from form addresses ?

#3 spramod

  • Members
  • Pip
  • Newbie
  • 4 posts

Posted 15 June 2006 - 07:05 AM

thanks for your reply,
previously i had a contact form on the same server.
that still works fine,
but now i have another for job application and with this i dont receive any emails.
i tried a test email with just 2 fields that also is not working..
any ideas!!!
thanks for the help..

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users