'6LchyXMUAAAAAABVIG4R6Ni9Aq5OcT_rR9EVrz4s', 'response' => $_POST["g-recaptcha-response"] ); $options = array( 'http' => array ( 'header' => "Content-Type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $verify = file_get_contents($url, false, $context); $captcha_success = json_decode($verify); if ($fullnameErr == "" and $emailErr == "" and $phoneErr== "" and $commentErr =="" and $responseErr == "" and $captcha_success == true) { $mail = new PHPMailer\PHPMailer\PHPMailer(true); //Set the hostname of the mail server $mail->SMTPDebug = 0; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Host = "a2plcpnl0816.prod.iad2.secureserver.net"; //enable this if you are using gmail smtp, for mandrill app it is not required $mail->SMTPSecure = "tls"; //$mail->ssl = false; //Set the SMTP port number - likely to be 25, 465 or 587 $mail->Port = 587; //Whether to use SMTP authentication $mail->SMTPAuth = true; //Username to use for SMTP authentication $mail->Username = 'i9sr2y8qntep'; //Password to use for SMTP authentication $mail->Password = 'Tay$la2679'; $email_message .= "

Trash It Contact Us Message

"; $email_message .= "

Full Name: ".clean_string($fullname)."

"; $email_message .= "

Email: ".clean_string($email)."

"; $email_message .= "

Telephone: ".clean_string($phone)."

"; $email_message .= "

Message: ".clean_string($comment)."

"; $mail->setFrom('info@trashittrashit.com', 'Trashit Valet'); $mail->addAddress('trashitcleaning@gmail.com', 'TrashIT Cleaning Service'); $mail->addAddress('info@trashittrashit.com', 'TrashIT Valet Service'); $mail->addAddress('rodd2679@gmail.com.com', 'Roger Marc'); $mail->addAddress('wilnic.marc@gmail.com', 'Wilnic Marc'); $mail->addAddress('gnvnmarc3@gmail.com', 'Geneviene Jean Francois'); // Add a recipient //$mail->addAddress('ellen@example.com'); // Name is optional //$mail->addReplyTo('info@example.com', 'Information'); $mail->addCC('wilnicm@msn.com'); $mail->addBCC('marcclerna@gmail.com'); //$mail($email_to, $email_subject, $email_message); //Content $mail->isHTML(true); // Set email format to HTML $mail->Subject = 'The customer'.' '.$fullname. ' sent following message'; $mail->Body = $email_message; $mail->AltBody = $email_message; if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { $_SESSION['incomingpage'] = $var_value; //$fullname = $email = $phone = $comment = ""; header('Location: /includes/quote_success.php'); } } } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } ?>

Call Trash It (678)-664-8787 for hassle free quote on your Junk removal

Contact Us

We want to hear from you.