عرض مشاركة واحدة
  #1  
قديم 11-14-2011
الصورة الرمزية RSS
RSS غير متواجد حالياً
ناقل الأخبار
 
تاريخ التسجيل: 11 - 2 - 10
المشاركات: 666,301
RSS is on a distinguished road
افتراضي [مشكلة] ساعدوني في كود phpmailer

السلام عليكم

اخواني ساعدوني في هذا السكربت لانني ملت

انا عملت ربط اضافه مواضيع في موقعي مع ارسال للايميل ولكن تظهر لي الاسطر في اعلى كل اضافة موضوع تظهر لي في الصفحة المخصصه لتاكيد نشر الخبر

والصورة توضح اكثر




واذا حبيت اضيف خبر راح اتشوفها للاسطر

هنا اضافه خبر

إضافة خبر - شبكة سكاي العربية


هذا الكود

رمز PHP:
}
if(
$main == 1){$apt->query("update rafia_news set main = '0' where id != '$id'");}
$apt->query("UPDATE rafia_cat SET countopic=countopic+1, lastpostid ='$id' WHERE id = '$cat_id'");
$Counter->increment('newsCount');

/* $mail = new email;
$mail->send_to_moderate($cat_id);*/


echo '';


$phpmail->SetFrom('[email protected]', 'skytoall.com');

$phpmail->AddReplyTo("[email protected]","First Last");

$mail_title = stripslashes($mail_title);

//echo $mail_title;
//echo $mail_post;

$mail_title = html_entity_decode($mail_title);
//die($mail_title);
$phpmail->Subject = iconv("windows-1256", "utf-8", $mail_title);
//$phpmail->AltBody = "السطر البرمجي 1093"; // optional, comment out and test
echo '';


if(!
in_array($cat_id,$cats_banned)){
$mail_post = stripslashes("$mail_post</p>");
$mail_post = html_entity_decode($mail_post).'

'
;
$mail_post = html_entity_decode($mail_post).'

'
;
$mail_post = html_entity_decode($mail_post).'';
$mail_post = html_entity_decode($mail_post).'

'
;
$phpmail->Body = iconv("windows-1256", "UTF-8", $mail_post);
$phpmail->IsHTML(true);


$phpmail->MsgHTML(iconv("windows-1256", "UTF-8", $mail_post));
$mail->AltBody= iconv("windows-1256", "UTF-8", $mail_post);

$mail_array = explode(',',$mails);

foreach(
$mail_array as $the_mails){
//$addressd = $mail_array[$i];

$phpmail->AddAddress($the_mails, "Skytoall");
$phpmail->Send();
}
}



if(
$userid >0 && $userid != $apt->Guestid)
{
if((
$H == 1) && ($userid > 0 ))
{
$apt->query("insert into rafia_alert (news_id, userid) values ('$id', '$userid')");
}
$apt->query("UPDATE rafia_users SET allposts = allposts+1 , lastadd='$timestamp' WHERE userid = '$userid'");
}
if (
$newsallow != "yes")
{
$url = "$PHP_SELF?action=list&cat_id=$cat_id";
$apt->bodymsg(LANG_MSG_THREAD_HAS_ADDED,$url);
}
else
{



$url = "$PHP_SELF?action=view&id=$id";
$apt->bodymsg(LANG_MSG_POST_HAS_BEEN_ADDED,$url);
}
}
else
{
$url = "$PHP_SELF?action=list&cat_id=$cat_id";
$apt->bodymsg(LANG_ERROR_ADD_DB,$url);
}
}
}


ولكم جزيل الشكر وفقكم ربي







أكثر...