$strTo = $_GET['mail']; $strSubject = "สวัสดีครับ ระบบส่งเมล์มาแล้ว"; $strHeader .= "'MIME-Version: 1.0' . \r\nContent-type: text/html; charset=utf-8\r\n"; // or UTF-8 // $strMessage = " <html> <head> <meta charset=\"UTF-8\"> <title>รายละเอียดสมัครใช้งาน</title> </head> <title>Progistech co.,Ltd</title> </head> <body> <BR></BR> <h1>ตามนี้นะครับ </h1><br> <BR> Best Regard, </body> </html> "; //*** Uniqid Session ***// $strSid = md5(uniqid(time())); $strHeader = ""; $strHeader .= "From: [email protected]\r\nReply-To: [email protected]"; $strHeader .= "'MIME-Version: 1.0' . \r\nContent-type: text/html; charset=utf-8\r\n"; // or UTF-8 // $strHeader .= "Content-Type: multipart/mixed; boundary=\"".$strSid."\"\n\n"; $strHeader .= "This is a multi-part message in MIME format.\n"; $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-type: text/html; charset=windows-874\n"; // or UTF-8 // $strHeader .= "Content-Transfer-Encoding: 7bit\n\n"; $strHeader .= $strMessage."\n\n"; //*** Files 1 ***// $strFilesName1 = "./Download/".$_GET['cusid']."/invoice.pdf"; //$strFilesName1 ="http://localhost/each.rar"; $strContent1 = chunk_split(base64_encode(file_get_contents($strFilesName1))); $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName1."\"\n"; $strHeader .= "Content-Transfer-Encoding: base64\n"; $strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName1."\"\n\n"; $strHeader .= $strContent1."\n\n"; $flgSend = @mail($strTo,$strSubject,null,$strHeader); // @ = No Show Error // if($flgSend) { //flgSend function rrmdir($dir) { // rrmdir if (is_dir($dir)) {//dir $objects = scandir($dir); foreach ($objects as $object) { //froeach if ($object != "." && $object != "..") { //ifobj if (filetype($dir."/".$object) == "dir") rrmdir($dir."/".$object); else unlink ($dir."/".$object); } //ifobj }//froeach reset($objects); rmdir($dir); } //dir }// rrmdir chdir ("./Download"); rrmdir($_GET['cusid']) ; echo "<center><img src=\"http://localhost/1Shopcode/images/loho.png\"><BR><BR><BR> <font size=\"9\" color=\"red\">ระบบได้ดำเนินการจัดส่งรายละเอียดไปยังอีเมล์ของท่านแล้ว</font></center>"; header('Refresh: 5;URL=http://localhost/1Shopcode'); } //flgSend
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง