Tell us about yourself and your project and we’ll get back to you right away.
We’ll never sell or rent your personal information
require_once('scripts/recaptcha/recaptchalib.php');
$publickey = "6LeoQAkAAAAAAMc1bUYi-aNk-r7fE0B62-hJhmOu"; // you got this from the signup page
$disabled = "";
$send_message = "";
$recaptcha = recaptcha_get_html($publickey);
if ((isset($_POST['go_mail'])) && ($_POST['go_mail']=='8675309')) {
// check recaptcha
$privatekey = "6LeoQAkAAAAAANt1N2ZfAYkbC_D6zNysM-JNRGxQ";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
// die ("The security code wasn't entered correctly. Please try it again." . "(reCAPTCHA said: " . $resp->error . ")");
$send_message = "The security code wasn't entered correctly. Please try again.";
} else {
// lets mail
include_once('scripts/PHPMailer/class.phpmailer.php');
$mail = new PHPMailer(); // defaults to using php "mail()"
$body = '';
$body .= "Name: " . $_POST['name'] ."
";
$body .= "Email: " . $_POST['email'] ."
";
$body .= "Phone: " . $_POST['phone'] ."
";
$body .= "Address:
".nl2br($_POST['address']) ."
";
$body .= "Message: ".eregi_replace("[\]",'',$_POST['message']);
$mail->From = $_POST['email'];
$mail->FromName = $_POST['name'];
$mail->Subject = "Contact from LooksGreatPromo.com";
$mail->MsgHTML($body);
$mail->AddAddress("info@looksgreatpromo.com", "Dan");
// $mail->AddAddress("solasus@gmail.com", "Kevin Brady");
if(!$mail->Send()) {
$send_message = "There was an error sending your message. Please try again.";
} else {
$send_message = "Your message has been sent.";
$disabled = 'disabled="disabled"';
$recaptcha = "";
}
}
}
?>
Tell us about yourself and your project and we’ll get back to you right away.
We’ll never sell or rent your personal information