"; } if($_POST['E_Mail'] == "") { $sError .= "- You must enter your email address.
"; } //verify captcha was entered correctly if($sError == "") { //This is an html email, so use standard html tags //Fields from the submitted form are prefixed by a dollar sign //Fields are case sensitive //Don't use double quotes in your html $strMail = " Name: ".stripslashes($_POST['FullName'])." Title: ".stripslashes($_POST['Title'])." Company: ".stripslashes($_POST['Company'])." Phone: ".$_POST['Phone']." Email Address: ".$_POST['E_Mail']." Comments: ".stripslashes($_POST['Comments'])." "; $header="Larry Mishkar.com \r\n"; $header .= "Reply-To:photo@larrymishkar.com\r\n"; $header .= "X-Mailer: PHP/" . phpversion(). "\r\n"; $header .= "X-Sender-IP: $REMOTE_ADDR\r\n"; $header .= "Content-Type: text/html"; //Mail recipient $strRecip = "Larry Mishkar "; //Finish the body of the email $msg = "$strMail"; //Set the subject line $Subject = "Contact email from: ".$_POST['FullName']; //Send the email mail("lmishkar@gmail.com", $Subject, $msg, $header); //All is okay so redirect to the thank you page header("Location: thankyou.php"); } } ?> Contact Larry Mishkar