السلام عليكم ورحمةالله وبركاته

اخواني عندي سكربت لارسال ايميلات من الاعضاء يعني مال دعوات
ولكن المشكلة انو ما يرسل html يعني ما عرفت شلون اسوي يرسل
فممكن تساعدوني كيف اخلي الرسالة تنرسل على شكل html

وهذا جزء الي هوة يكول تكدر تغير براحتك بما يتناسب مع مرادك


كود PHP:
//Allow script to run for up to 90 seconds
set_time_limit (90);
$email = isset($_REQUEST['email']) ? $email=$_REQUEST['email'] : '';
$pass = isset($_REQUEST['password']) ? $pass=$_REQUEST['password'] : '';
$contactlist null;
$errmsg '';
if (!isset(
$email)) $email='';
if (!isset(
$pass)) $pass='';
if (isset(
$_REQUEST['sendInvite']) && $_REQUEST['sendInvite']='Send invite' && isset($_REQUEST['emails'])) {
 
$host $_SERVER['HTTP_HOST'];
 
//Disable email delivery if tested from xxx.octazen.com
 
if (!empty($host) && strpos(strtolower($host),"octazen.com")>0) {
  echo 
"<div style='font-size: 20px; color:#FF0000'>Email sending disabled in demo</div><br/>\r\n";
 }
 else {
   
////////////////////////////////////////////////////////
   //THIS IS THE SECTION TO SEND INVITES AN EMAIL. CUSTOMIZE TO FIT YOUR NEEDS!
   ////////////////////////////////////////////////////////
   
$emails $_REQUEST['emails'];
  
$subject "Invitation from $email";
  
$headers 'From: '.$email;
  
$emails $_REQUEST['emails'];
  foreach (
$emails as $to) {
   list(
$to,$name) = split(':::',$to,2);
   
$message "Hi $name$email would like you to take a look at this site! http://www.xxxx.com\r\n\r\n";
   
//echo "[TO=$to,SUBJECT=$subject,HEADER=$headers,MESSAGE=$message]";
   
mail($to$subject$message$headers);
   echo 
"Mail sent to $name ($to)<br/>\r\n";
  }
 }
}
else if (isset(
$_REQUEST['post'])) {
  
////////////////////////////////////////////////////////
  //THIS IS THE SECTION TO IMPORT CONTACTS
  ////////////////////////////////////////////////////////
 
$validCaptcha true;
 if (
function_exists('recaptcha_check_answer') && isset($privatekey)) {
  if (
$_POST["recaptcha_response_field"]) {
   
$resp recaptcha_check_answer ($privatekey$_SERVER["REMOTE_ADDR"],
           
$_POST["recaptcha_challenge_field"],
           
$_POST["recaptcha_response_field"]);
   
$validCaptcha $resp->is_valid;
  }
  else {
   
$validCaptcha false;
  }
 }
 if (
$validCaptcha) {
  
$obj = new AddressBookImporter;
  
$res $obj->fetchContacts($email,$pass);
  if (
$res==_ABI_AUTHENTICATION_FAILED) {
   
$errmsg='Bad user name or password';
  }
  else if (
$res==_ABI_FAILED) {
   
$errmsg='Server error';
  }
  else if (
$res==_ABI_UNSUPPORTED) {
   
$errmsg='Unsupported webmail';
  }
  else {
   
$contactlist $res;
   
$contactlist abi_dedupe_contacts_by_email($contactlist);
   
$contactlist abi_sort_contacts_by_name($contactlist);
  }
 } else {
  
//set the error code so that we can display it
  
$errmsg="Please enter a valid answer to the captcha challenge";
 }
  
////////////////////////////////////////////////////////
}
if (
function_exists('recaptcha_check_answer') && isset($privatekey) && isset($privatekey)) {
 
$captchaHtml recaptcha_get_html($publickey);
}
else {
 
$captchaHtml '';
}
?> 


وسؤال ثاني كيف اتاكد ان السكربت منزوع الكود او انه امن هل ممكن مساعدة يا حبايب

تحياتي للجميييييييييع