My site has the following code to send email.
if($_SESSION["captcha"]==$_POST["captcha"]) {
$msg="Require Services :\t$_POST[service]\n";
$msg="Name :\t$_POST[name]\n";
$msg.="Company Name :\t$_POST[co_name]\n";
$msg.="Address :\t$_POST[address]\n";
$msg.="Mobile :\t$_POST[mobile]\n";
$msg.="Phone :\t$_POST[phone]\n";
$msg.="E-mail :\t$_POST[email]\n";
$msg.="Message :\t$_POST[message]\n";
$subject=$_POST[subject];
$to="[email protected],[email protected]";
$headers="From: $_POST[email] < $_POST[email]> \n";
$headers .= "Reply-To: $_POST[email]\n\n";
mail($to,$subject,$msg,$headers);}
?>
Even after using captcha to reduce junk mail I still get a lot of junk. Does anyone have any suggestions or improvements to my code they could provide?