Circus Sensible
Facepainters, Balloon Modellers

Facepainters

Face Painters, Balloon Modellers and Henna Tattoo artists for all events, nationwide. Prices from £295 per day or £50/hour (plus travel and VAT)
Stacks Image 9
Name:: ".$_POST[$sfTitle]."
"; ?>
Your Email:: ".$_POST[$sfTitle]."
"; ?>
Your Location:: ".$_POST[$sfTitle]."
"; ?>
Your Message::

".nl2br(str_replace("\xc2\xa0",' ', $_POST[$sfTitle]), true)."

"; ?>
verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']); if (!$resp->isSuccess()) { $output = json_encode(array('type'=>'error', 'text' => 'Captcha Validation Required!')); die($output); } } ?>
" . $htmlBody . "
"; $to = 'circussensible@gmail.com'; // a random hash will be necessary to send mixed content $separator = md5(time()); // carriage return type (we use a PHP end of line constant) $eol = PHP_EOL; // main header (multipart mandatory) $headers = "Reply-To: ".$name." <".$email.">" . $eol; //$headers .= "From: ".$name." <".$email.">" . $eol; $headers .= "From: <".$emailFromH.">" . $eol; $headers .= "MIME-Version: 1.0" . $eol; $headers .= "Content-Type: multipart/mixed; boundary=\"" . $separator . "\"" . $eol . $eol; $message = "" . $separator . $eol; $message .= "Content-Transfer-Encoding: 7bit" . $eol; $message .= "This is a MIME encoded message." . $eol . $eol; // message $message .= "--" . $separator . $eol; $message .= "Content-type:text/html;charset=UTF-8" . $eol; $message .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; $message .= $htmlBody . $eol . $eol; // attachment if (isset($path_of_uploaded_file)) { foreach($path_of_uploaded_file as $k=>$v){ if (!empty($v)) { $file_size = filesize($v); $handle = fopen($v, "r"); $content = fread($handle, $file_size); fclose($handle); $content = chunk_split(base64_encode($content)); $message .= "--" . $separator . $eol; $message .= "Content-Type: application/octet-stream; name=\"" . $v . "\"" . $eol; $message .= "Content-Transfer-Encoding: base64" . $eol; $message .= "Content-Disposition: attachment" . $eol . $eol; $message .= $content . $eol . $eol; } } $message .= "--" . $separator . "--"; } //SEND Mail if($to == "demo@email.com") { echo "

Thanks!

Your message was sent successfully.

"; } elseif (mail($to, $subject, $message, $headers)) { echo "

Thanks!

Your message was sent successfully.

"; } else { echo "

Mail Error

Sorry something seems to have gone wrong, please try again later.

"; }?>
Autoreply
Subject
HTML Body
Thanks for your email!

Someone should be contacting you shortly.

-Autoreply EOD; $autoreplyBody = strip_tags($autoreplyHtmlBody); $autoreplyFrom = "noreply@circusssensible.co.uk"; if($autoreplyFrom == "") { $autoreplyFrom = $emailFromH; } $headersReply = "MIME-Version: 1.0" . "\r\n"; $headersReply .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headersReply .= 'From: '. $autoreplyFrom . "\r\n"; $autoreplySubject = html_entity_decode($autoreplySubject); mail($email,$autoreplySubject,$autoreplyHtmlBody,$headersReply); ?>