<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <table bgcolor="#35aa47" border="1" bordercolor="#35aa47" width="700px"> <tr><td><label style="font-size:18px; color:#FFF">ส่งข้อร้องเรียนถึงผู้บริหาร</label></td></tr> <tr><td> <form action="send.php" method='post' > <table width="700px" cellpadding="10" cellspacing="5" bgcolor="#FFFFFF"> <tr><td>ชื่อลูกค้า : </td><td><input type='text' name='txtname' style="width:200px;"></td></tr> <tr><td>Email : </td><td><input type='text' name='txtemail' style="width:200px;"></td></tr> <tr><td>เบอร์โทรศัพท์ : </td><td><input type='text' name='txttel' style="width:200px;"></td></tr> <tr><td>Domain/IP : </td><td><input type='text' name='txtdomain' style="width:500px;" ></td></tr> <tr><td>เรื่องร้องเรียน : </td><td><input type='text' name='txtsubject' style="width:500px;"></td></tr> <tr><td>รายละเอียด : </td><td><textarea name="txtmsg" rows="10" cols="200" style="width:500px; height:100px;"></TEXTAREA></td></tr> <tr><td></td><td><input type='submit' value='ส่งข้อความ' style="width:100px;"></td></tr> </table> </form> </td></tr></table> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php $formweb = "Complan from web"; $strTo = "[email protected]"; $strSubject = "Complan form web :".$_POST["txtsubject"]; $strHeader = "Content-type: text/html; charset=utf-8\r\n"; // or UTF-8 // $strHeader .= "From: ".$formweb."<[email protected]>\r\nReply-To: ".$_POST["txtemail"].""; $strMessage = "เบอร์ติดต่อลูกค้า : ".$_POST["txttel"]."<br>"; $strMessage .= "ลูกค้าชื่อ : ".$_POST["txtname"]."<br>"; $strMessage .= "Email : ".$_POST["txtemail"]."<br>"; $strMessage .= "Domain/IP : ".$_POST["txtdomain"]."<br>"; $strMessage .= "หัวข้อร้องเรียน : ".$_POST["txtsubject"]."<br>"; $strMessage .= "=======================================================<br>"; $strMessage .= nl2br($_POST["txtmsg"])."<br>"; $strMessage .= "=======================================================<br>"; $flgSend = mail($strTo,$strSubject,$strMessage,$strHeader); // @ = No Show Error // if($flgSend) { //echo "Email Sending."; $strTo = $_POST["txtemail"]; $strSubject = "ขอบคุณสำหรับการร้องเรียนของท่าน : ".$_POST["txtdomain"]; $strHeader = "Content-type: text/html; charset=utf-8\r\n"; // or UTF-8 // $strHeader .= "From: <[email protected]>"; $strMessage = "ขอบคุณลูกค้า คุณ : ".$_POST["txtname"]."<br>"; $strMessage .= "หัวข้อร้องเรียน : ".$_POST["txtsubject"]."<br>"; $strMessage .= "=======================================================<br>"; $strMessage .= "ได้รับการร้องเรียนจากท่านเรียบร้อยแล้ว จะรีบดำเนินการแก้ไขแและติดต่อกลับภายใน 24 ชั่วโมง<br>"; $strMessage .= "=======================================================<br>"; //$strMessage .= nl2br($_POST["txtmsg"]); $flgSend = mail($strTo,$strSubject,$strMessage,$strHeader); // @ = No Show Error // if($flgSend) { echo"ได้รับข้อร้องเรียนของท่านเรียบร้อยแล้วค่ะ"; } else { echo"Email Can Not Send Customer"; } } else { echo "Email Can Not Send."; } ?> </body> </html>
$mail->addAttachment('uploads/file.tar.gz'); $mail->addAttachment('uploads/image.jpg', 'new.jpg');
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง