Welcome E-mail For New Customers

[insert_php]

$from_email =”office@lifeshieldlaser.com”;// < <=== update to your email address session_start(); $firstname = ""; $lastname = ""; $to_email = ""; $codeinput = ""; if(isset($_POST['submit'])) { $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $to_email = $_POST['email']; $codeinput = $_POST['codeinput']; $subject = "Welcome to the LifeShield Laser family, ".$firstname; $domaino = "http://www.lifeshieldlaser.com/"; $contacto = "contact/?*EM=".$to_email; $manual = "wp-content/uploads/pdf-lifeshieldmanual.pdf?*EM=".$to_email; $subscribo = "subscribe-as/?*EM=".$to_email; $redirecturl = $domaino."success-generic/"; $errorpage = $domaino."error-page/"; $codecaptcha = "lknell"; $codeinput = $_POST['codeinput']; ///------------Do Validations------------- if ($codeinput!="") { if (strcasecmp($codecaptcha,$codeinput) == 0) { //send the email $to = $to_email; $subjecto=$subject; $from = $from_email; $ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ''; $body = "“.$subjecto.”

Thank you for your purchase of a LifeShield Laser. We are sure you’ll be extremely satisfied with it.
In the event you are not, you are covered by our money-back guarantee.

Before you do anything else, please subscribe to our After Sales Newsletter.

You’ll only receive the newsletter about once a month. We’ll provide tips on how to use the laser, anecdotes on other people’s success stories
and any new information that comes our way.

You can download the manual for the LifeShield Laser here.

And, of course, if you have any questions or concerns, feel free to contact us anytime.

Thanks again for your purchase, “.$firstname.”,

THE LIFESHIELD LASER TEAM

Submitted from IP address at LifeShieldLaser.com:
“.$ip.”“;

$headers = “MIME-Version: 1.0″.”\r\n”;
$headers .= “Content-type: text/html; charset=iso-8859-1″.”\r\n”;
$headers .= “From: Gene Lennarts < ".$from_email.">\r\n”;
$headers .= “To: “.$firstname.” “.$lastname.” < ".$to_email.">\r\n”;
$headers .= “Reply-To: $from_email\r\n”;

mail($to, $subjecto, $body,$headers);

$url1 = ““;

printf($url1);

}
}

if ($codeinput==””) {
$url2 = ““;
printf($url2);
}

if (strcasecmp($codecaptcha,$codeinput) != 0) {
$url2 = ““;
printf($url2);
}

}

// Function to validate against any email injection attempts
function IsInjected($str)
{
$injections = array(‘(\n+)’,
‘(\r+)’,
‘(\t+)’,
‘(%0A+)’,
‘(%0D+)’,
‘(%08+)’,
‘(%09+)’
);
$inject = join(‘|’, $injections);
$inject = “/$inject/i”;
if(preg_match($inject,$str))
{
return true;
}
else
{
return false;
}
}

[/insert_php]

Comments are closed.