require("class.phpmailer.php"); set_time_limit(0); // ..if the variable is not set, return the defaultValue function fnc_get_POST ($formName, $defaultValue = "") { if (isset ($_POST[$formName])) { return trim ( stripslashes ($_POST[$formName]) ); } else { return $defaultValue; } } $ConfirmMsg = ""; $strsub = fnc_get_Post("isSubmitted",""); If($strsub == "yes") { $strEmailFrom = "info@hisnameisbob.com"; $strEmailTo = "info@hisnameisbob.com"; $strFrom = "info@hisnameisbob.com"; $strTo = "info@hisnameisbob.com"; $strSub = "His Name Is Bob Information Request"; $strYName = fnc_get_Post("Name",""); $strCName = fnc_get_Post("Company_Name",""); $strEAddress = fnc_get_Post("Email_Address",""); $strPNumber = fnc_get_Post("Phone_Number",""); $strInquire = fnc_get_Post("Inquire",""); $strDetails = fnc_get_Post("Details",""); $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "localhost"; $strbody = ""; $strbody = $strbody . "
"; $strbody = $strbody . ""; $strbody = $strbody . ""; $strbody = $strbody . "Name: " . $strYName; $strbody = $strbody . "