Your first step towards financial peace of mind
Name:: ".$_POST['input-stacks_in_978_page3']."
"; $subject = $subject." / ".$_POST['input-stacks_in_978_page3']; ?>
Please take care when entering your email address to ensure there are no typos. Thank you.
Email: ".$_POST['email-stacks_in_1090_page3']."
"; $email = $_POST['email-stacks_in_1090_page3']; ?>
We have not made this a required field but completing this is appreciated.
Mobile Phone:: ".$_POST['input-stacks_in_1014_page3']."
"; ?>
Skype Address:: ".$_POST['input-stacks_in_1032_page3']."
"; ?>
Message:: ".$_POST['input-stacks_in_1068_page3']."
"; ?>
Country of Residence:: ".$_POST['input-stacks_in_1050_page3']."
"; ?>
Please type the number in blue
Autoreply
From
Subject
HTML Body
Thanks for your email!

Someone should be contacting you shortly.

-Autoreply EOD; $autoreplyBody = strip_tags($autoreplyHtmlBody);?>
IP Address: ".$_SERVER['REMOTE_ADDR']."
";//REMOVE IP ADDRESS FOR UPDATE $htmlBody = "
" . $htmlBody . "
"; // ------------------------------------ // // HAS CAPTCHA // ------------------------------------ // if (isset($hasCaptcha)) { if(isset($_POST["captcha"])&&$_POST["captcha"]!=""&&$_SESSION["code"]==$_POST["captcha"]){ // ALTERNATIVE MAILER $to = '[email protected]'; // 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 = "From: <".$emailFromH.">" . $eol; $headers = "Reply-To: ".$name." <".$email.">" . $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 (mail($to, $subject, $message, $headers)) { echo "

Message Sent!

"; } else { echo "

Mail() Error

" . $mail->ErrorInfo . " " . $errors . "

"; } $from = '[email protected]'; $headersReply = "MIME-Version: 1.0" . "\r\n"; $headersReply .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headersReply .= 'From: '. $emailFromH . "\r\n"; $autoreplySubject = html_entity_decode($autoreplySubject); mail($email,$autoreplySubject,$autoreplyHtmlBody,$headersReply); // PHPMAILER } else { echo "

Captcha Error!

Input did not match. Please try again.

"; } // ------------------------------------ // // DOES NOT HAVE CAPTCHA // ------------------------------------ // } else { // ALTERNATIVE MAILER $to = '[email protected]'; // 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 = "From: <".$emailFromH.">" . $eol; $headers = "Reply-To: ".$name." <".$email.">" . $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 (mail($to, $subject, $message, $headers)) { echo "

Message Sent!

"; } else { echo "

Mail() Error

" . $mail->ErrorInfo . " " . $errors . "

"; } $from = '[email protected]'; $headersReply = "MIME-Version: 1.0" . "\r\n"; $headersReply .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headersReply .= 'From: '. $from . "\r\n"; $autoreplySubject = html_entity_decode($autoreplySubject); mail($email,$autoreplySubject,$autoreplyHtmlBody,$headersReply); // PHPMAILER } } ?>