<? require 'class.phpmailer.php'; $mail = new PHPMailer(); $mail->From = "[email protected]"; $mail->FromName = "otserver"; $mail->Host = "mail.otserver.com"; $mail->Mailer = "smtp"; $mail->AddAddress("[email protected]", "support"); // name is optional $mail->WordWrap = 50; // set word wrap to 50 characters $mail->Subject = "Contact"; $mail->Body = $_POST['message']; $_POST['surename'];$_POST['nick'];$_POST['email']; $_POST['phone']; $_POST['sun'];$_POST['bat'];$_POST['bat01'];$_POST['message1']; $mail->AltBody = "This is the body in plain text for non-HTML mail clients"; $mail->IsHTML(false); $mail->SMTPAuth = "true"; $mail->Username = ""; $mail->Password = ""; if(!$mail->Send()) { echo "Message could not be sent. <p>"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo "Message complete"; ?>
$strMessage = " <h1>My Message</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>";
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง