include_once "class.phpmailer.php";
if(isset($_REQUEST['submit_x']))
{
extract($_REQUEST);
$mail = new PHPMailer;
$subject1 = 'New Message Received From (Michael Warren Agency): '.$name;
$email_to = "mjwarren@pocketinet.com";
//$email_to = "don@americancreative.com";
$body1 = '
QUICK QUOTE INSURANCE FORM
Full Name :
'.$_REQUEST['full_name'].'
Address :
'.$_REQUEST['address'].'
City :
'.$_REQUEST['city'].'
State :
'.$_REQUEST['state'].'
Zip :
'.$_REQUEST['zip'].'
Phone :
'.$_REQUEST['phone'].'
Best Time To Call :
'.$_REQUEST['best_time'].' '.$_REQUEST['r1'].'
Type of Coverage
Auto :
'.$_REQUEST['auto'].'
Home :
'.$_REQUEST['home'].'
Commercial :
'.$_REQUEST['commertial'].'
Life & Health :
'.$_REQUEST['life'].'
E-mail Address :
'.$_REQUEST['email'].'
Retirement & Financial
Planning :
'.$_REQUEST['retirement'].'
';
//echo $body1;
$mail->FromName = trim($_REQUEST['full_name']);
$mail->IsHTML(true);
$mail->AddAddress($email_to,Michaelwarrenagency);
$mail->From = trim($_REQUEST['email']);
$mail->Subject = $subject1;
$mail->Body = stripslashes($body1);
if(!$mail->Send())
{
$msg = "Sorry, There Was A Problem Sending Mail";
}
else
{
$msg = "Mail Was Sent Successfully";
//header("location:index.php");
}
}
?>
Get an Insurance Quote in Walla Walla from the Michael Warren Agency