File Manager
Back to List
|
Up to Parent Directory
| Current Directory: ~/mailtest
Editing: mailtest/sendmail.php
Full path: C:\ict\ICT\mailtest\sendmail.php
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 $idl= $_REQUEST['id_letter']; echo $idl; $strTo = "wassanaw@swu.ac.th"; $strSubject = "We have a letter to you"; $strHeader = "Content-type: text/html; charset=windows-874\r\n"; // or UTF-8 // $strHeader .= "From: Wassana Wongpech<wassanaw@swu.ac.th>\r\nReply-To: wassanaw@swu.ac.th"; $strVar = "My Message"; $strMessage = " <h1>˹ѧ������ �Ţ�Ѻ</h1><br> <table width='285' border='1'> <tr> <td><div align='center'><strong>My Message </strong></div></td> <td><div align='center'><font color='red'>My Message</font></div></td> <td><div align='center'><font size='2'>My Message</font></div></td> </tr> <tr> <td><div align='center'>My Message</div></td> <td><div align='center'>My Message</div></td> <td><div align='center'>My Message</div></td> </tr> <tr> <td><div align='center'>".$strVar."</div></td> <td><div align='center'>".$strVar."</div></td> <td><div align='center'>".$strVar."</div></td> </tr> </table>"; $flgSend = mail($strTo,$strSubject,$strMessage,$strHeader); // @ = No Show Error // if($flgSend) { echo "Email Sending."; } else { echo "Email Can Not Send."; } ?> </body> </html>