IsHTML(true); $mail->Subject = "".COMPANY_NAME.": Website Enquiry"; // Create Body $style = "#main{background: #FFFFFF; width: 500px; margin: auto; padding: 20px; border: 1px solid #000000}"; $body = "\n"; $body .= "\n"; $body .= "\n"; $body .= "
\n"; $body .= "

\n"; $body .= "An enquiry has been submitted via the ".COMPANY_NAME.". The enquiry is as follows.

\n\n\n"; $body .= "Name: ".$_POST['yourname']."
\n\n"; $body .= "Email Address: ".$_POST['youremail']."
\n\n"; $body .= "Contact Number: ".$_POST['yournumber']."
\n\n"; $body .= "Message: ".$_POST['message']."
\n\n"; $body .= "\n"; $body .= "\n"; //normal mailer $mail->AddAddress("enquiries@jmrvehicles.co.uk"); #$mail->AddAddress("nick@vistadesign.co.uk"); $mail->From = $_POST['youremail']; $mail->FromName = $_POST['yourname']; $mail->Body = $body; // PHP Mailer $mail->Send(); header("location:page.php?id=5&contactform=1"); } } include"data_includes/single_page.php"; ?>




Thank you for contacting COMPANY_NAME. We have received your enquiry and will be in touch soon.

Your Name:


Your Email:


Your Contact Number:


Your Comments: