'6LchyXMUAAAAAABVIG4R6Ni9Aq5OcT_rR9EVrz4s', 'response' => $_POST["g-recaptcha-response"] ); $options = array( 'http' => array ( 'method' => 'POST', 'content' => http_build_query($data), 'header' => 'Content-Type: application/x-www-form-urlencoded' ) ); $context = stream_context_create($options); $verify = file_get_contents($url, false, $context); $captcha_success=json_decode($verify); if ($fnameErr == "" and $lnameErr == "" and $compnameErr == "" and $addrss1Err == "" and $addrss2Err == "" and $cityErr == "" and $zipErr == "" and $statErr == "" and $emailErr == "" 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 Online Quote Request

"; if (isset($evalTrash) or isset($trashdstp) or isset($trashmaint) or isset($trashoth)) { $email_message .= "

Send me a price quotation for the following service:

"; if(isset($evalTrash)) { $email_message .= clean_string("

$evalTrash

"); } if(isset($trashdstp)) { $email_message .= clean_string("

$trashdstp

"); } if(isset($trashmaint)) { $email_message .= clean_string("

$trashmaint

"); } if(isset($trashoth)) { $email_message .= clean_string("

$trashoth

"); } } $email_message .= "

Customer Information

"; $email_message .= "

First Name: ".clean_string($fname)."

"; $email_message .= "

Last Name: ".clean_string($lname)."

"; $email_message .= "

Email: ".clean_string($email)."

"; $email_message .= "

Telephone: ".clean_string($phone)."

"; $email_message .= "

Company: ".clean_string($compname)."

"; $email_message .= "

Street Address: ".clean_string($addrss1)."

"; $email_message .= "

Address Line 2: ".clean_string($addrss2)."

"; $email_message .= "

City: ".clean_string($city)."

"; $email_message .= "

State: ".clean_string($stat)."

"; $email_message .= "

Zip: ".clean_string($zip)."

"; $email_message .= "

How did you hear about us: ".clean_string($marketing)."

"; $email_message .= "

Number of units: ".clean_string($unit)."

"; $email_message .= "

Contact Me By: ".clean_string($contactby)."

"; $email_message .= "

Message: ".clean_string($comment)."

"; $mail->setFrom('info@trashittrashit.com', 'Trashit Valet'); $mail->addAddress('trashitcleaning@gmail.com', 'TrashIT Valet Cleaning'); $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', 'Genevieve 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'.' '.$fname. ' '. $lname. ' '. 'needs Trashit Valet Quote'; $mail->Body = $email_message; $mail->AltBody = $email_message; if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { $_SESSION['incomingpage'] = $var_value; //$evalTrash = $trashdstp = $trashmaint = $trashoth = $fname = $lname = $compname = //$addrss1 = $addrss2= $city = $unit = $zip = $stat = $email = $phone = $comment = //$contactby = ""; 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); } ?>

Trash It Job Application