/*************************************************** initialize variables ***************************************************/ $sName = ''; $sCompany = ''; $sPhone = ''; $sEmail = ''; $sComments = ''; $sHear = ''; $sCode = ''; /*************************************************** form submitted ***************************************************/ if (isset($_POST['hidSubmit'])): $sName = $_POST['txtName']; $sCompany = $_POST['txtCompany']; $sPhone = $_POST['txtPhone']; $sEmail = $_POST['txtEmail']; $sComments = $_POST['txaComments']; $sHear = $_POST['selHear']; /*************************************************** send mail! ***************************************************/ include('class.phpmailer.php'); include('class.smtp.php'); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = 'mail63.safesecureweb.com'; //$mail->SMTPDebug = 2; $mail->SMTPAuth = true; //$mail->Port = 26; $mail->Username = 'info@tjmcgeehan.com'; $mail->Password = 'wr7DRayA'; //$mail->AddAddress('jameyhoff@gmail.com'); $mail->AddAddress('info@tjmcgeehan.com'); $mail->SetFrom($sEmail, $sName); $mail->Subject = 'TJ McGeehan Contact Form Submission'; $message = "
Name: | $sName |
---|---|
Company: | $sCompany |
Phone: | $sPhone |
Email: | $sEmail |
Comments: | $sComments |
How did you hear about us? | $sHear |