require_once("class.phpmailer.php"); require_once("class.smtp.php"); $mail = new PHPMailer(); $mail->IsHTML(true); $mail->IsSMTP(); $mail->CharSet = "windows-874"; $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // sets the prefix to the servier $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server $mail->Port = 465; // set the SMTP port for the GMAIL server $mail->Username = "username"; // GMAIL username $mail->Password = "password"; // GMAIL password $mail->From = "emailsent"; $mail->FromName = "name"; // set from Name $mail->Subject = "ใบสั่งซื้อสินค้าเว็บไซต์"; $mail->Body = "ข้อมูลสินค้า"; $mail->AddAddress("[email protected]"); // ผู้รับคนที่หนึ่ง //$mail->AddAddress("[email protected]", "recipient2"); // ผู้รับคนที่สอง $mail->set('X-Priority', '1'); //Priority 1 = High, 3 = Normal, 5 = low :Security if(!$mail->Send()) { } else { }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง