select_row(“SELECT subject,link FROM email_blasts WHERE id=’$email_id'”);
}
else
{
}
$status = “Send this message to a friend.”;
if(isset($_POST[‘Yourfriendemail’]) && $_POST[‘Yourfriendemail’] != “”){
//$status = “Sent message to “. $_POST[‘Yourfriendemail’];
$to = addslashes($_POST[‘Yourfriendemail’]);
$from = addslashes($_POST[‘youremail’]);
$subject = $vars[‘subject’];
$message = ”.addslashes($_POST[‘Yourfriendname’]).’,
Your friend ‘.addslashes($_POST[‘yourname’]).’ wants you to check out these Specials at:
‘.$vars[‘link’].’
Thank you,
MilitaryShoppers.com
‘;
$email_headers= ‘From: ‘. $from.”\r\n”.
‘Reply-To: ‘.$from.”\r\n”.
‘X-Mailer:PHP/’ . phpversion();
$email_send_email = $to.”,” . $subject.”,”. $message . “,” . $email_headers;
if (!mail($email_send_email)) {
$status=”Email Error!”;
} else {
$status=”Thank you. The email has been forwarded to ” . $_POST[‘Yourfriendemail’];
}
}
?>
” . “{$vars[‘link’]}” ;?>