File Manager
Back to List
| Current Directory: ~/
Editing: sendmailswu.php.bak
Full path: C:\ict\ICT\sendmailswu.php.bak
Permissions: rwx
Write test: File appears not directly writable
Current process identity: IIS APPPOOL\DefaultAppPool
<html> <head> <title>hi</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> </head> <body> <?php $id_letter= $_REQUEST['id_letter']; $dued=$_REQUEST['dued']; $sdue=$_REQUEST['sdue']; echo $dued; echo $sdue; $emailswu= $_REQUEST['emailswu']; //echo $emailswu; $filename= $_REQUEST['filename']; //$filename="<a href=countletin.asp?id="+$filename+">"+$filename+"</a>"; //echo $filename; //$filename="http://bsris.swu.ac.th/letinup/in-0267.PDF"; $id_sent= $_REQUEST['id_sent']; //echo $id_sent; $titleletter= $_REQUEST['titleletter']; //echo $titleletter; $id_staff= $_REQUEST['id_staff']; $id_staff=substr($id_staff,1); $n=explode(",",$id_staff); foreach($n as $c){ //echo $c; echo "<br>"; } //�¡�����������ʻ�Шӵ�� //$e_ids= $_REQUEST['e_ids']; //$e_ids=substr($e_ids,1); // $o=explode(",",$e_ids); // foreach($o as $c){ //echo $c; //echo "<br>"; // $p=explode("+",$c); // foreach($p as $d){ //echo $d; //echo"<br>"; ����õѴ����šѺ ���ʺؤ�ҡ� $emailswu=substr($emailswu,1); $m=explode(",",$emailswu); foreach($m as $b){ //echo $b; //echo "<br>"; $strHeader = "Content-type: text/html; charset=windows-874\r\n"; // or UTF-8 // //$strTo = "wassanaw@g.swu.ac.th"; //$strHeader = "'MIME-Version: 1.0' . \r\nContent-type: text/html; charset=utf-8\r\n"; $strHeader .= "From: Wassana Wongpech<wassanaw@swu.ac.th>\r\nReply-To: wassanaw@swu.ac.th"; $strSubject ="=?windows-874?B?".base64_encode($titleletter)."?="; //$strSubject = $titleletter."/".$id_letter; $strTo = $b; $strVar = "My Message"; $strMessage = " <h1>˹ѧ������</h1><br> <table width='500' border='0'> <tr bgcolor=#CCCCCC> <td><div align='center'><strong>����ͧ</strong></div></td> <td><div align='center'><font size='2'>".$titleletter."</font></div></td> </tr> <tr> <td><div align='center'>�Ţ���˹ѧ�����</div></td> <td><div align='center'>".$id_sent."</div></td> </tr> <tr bgcolor=#CCCCCC> <td><div align='center'><font color=red>��˹��觡�Ѻ(Ǵ�)</font></div></td> <td><div align='center'><font color=red>".$sdue."</font></div></td> </tr> <tr> <td><div align='center'>�Ţ˹ѧ����Ѻ</div></td> <td><div align='center'>".$id_letter."</div></td> </tr> <tr bgcolor=#CCCCCC> <td><div align='center'>�͡���Ṻ</div></td> <td><div align='center'>".$filename."</div></td> </tr> </table>"; $flgSend = mail($strTo,$strSubject,$strMessage,$strHeader); // @ = No Show Error // if($flgSend) { echo "Email Sending."; $sentmailstatus=1; echo "<script language=\"JavaScript\">"; echo "alert('�������������Ǩ��');"; echo "</script>"; echo $flgsend; $url='http://bsris.swu.ac.th/detail_letterin.asp?id='.$id_letter; echo '<META HTTP-EQUIV=REFRESH CONTENT="1; '.$url.'">'; } else { echo "Email Can Not Send."; } //������觨���������Ѻ 1 �� //} echo"<br>"; } ?> </body> </html>