Contact Response
getFile('contents.html'); //$body = eregi_replace("[\]",'',$body); $body = "
Name:\t $name
Phone:\t $phone
Email:\t $email
Tennis Rating:\t $rating
Interests:\t 

$message

"; $mail->IsSMTP(); // telling the class to use SMTP //$mail->Host = "mail.swiftstaffing.com"; // SMTP server $mail->Host = "localhost"; // SMTP server //$mail->IsSendmail(); // telling the class to use SendMail transport $mail->From = "rswift@swiftstaffing.com"; $mail->FromName = "Ron Swift"; $mail->Subject = "St Timothy Tennis Website Message"; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->MsgHTML($body); $mail->AddAddress("gfarrant@yahoo.com", "George Farrant"); $mail->AddBCC("rswift@swiftstaffing.com", "Ron Swift"); //$mail->AddAttachment("images/phpmailer.gif"); // attachment if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Thank you for completing the form!"; } # Email Variables //$to = 'rswift@swiftstaffing.com'; //$subject = 'Message from Your Website'; //$headers = "From: www.sttimtennisclub.com \r\n"; //$headers .= "Content-Type: text/html"; //$message = " //
//Name:\t $name
//Phone:\t $phone
//Email:\t $email
//Tennis Rating:\t $rating
//Interests:\t 

$message

//
//"; //$answer = $_REQUEST['txtRobot']; //if ($answer == "4"){ // mail($to,$subject,$message,$headers); // header("Location: /thankyou/"); //} //else // echo '

Thank-you for completing the form!

'; //fi ?>