![]() |
الى جميع المبرمجين المحترفين ...
السلام عليكم ورحمه الله وبركاته
يا اخوان انا عندي كود ارسال ولاني عارف ليش ما يشتغل ماي هذا هو الكود //function used for sending mails to subscribers.it accept 3 parameter function send_mail($mailid,$fromid,$sub,$msg) { //$headers = "MIME-Version: 1.0\r\n"; $headers = "Content-type: text/html; charset=iso-8859-1\r\n"; /* additional headers */ $headers .= "From: $fromid\r\n"; $headers .= "Reply-To: $fromid\r\n"; $msg="$GLOBALS[email_header]<br><br>$msg<br><br>$GLOBALS[email_footer]"; //this will send mail to each person individually. $mailid=split(",",$mailid); for($i=0;$i<count($mailid);$i++) { //echo"Message : $msg"; mail($mailid[$i], $sub, $msg,$headers); } return 1; } $admin_mail_id="webmaster@site.com"; $mail="mysite@mysite.com"; $sub="subject"; $msg="hi this messege for you"; send_mail($admin_mail_id,$mail,$sub,$msg) واذا فيه اي خطأ بالله قولولي انا بانتظاركم |
للرفع يا الربع ضرووووووووري
|
up
up up up up up up up up |
up
up up |
جميع الأوقات بتوقيت مكة المكرمة. الساعة الآن » 03:51 PM. |
Powered by vBulletin
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © ArabWebTalk.Com 2004-2012