<?php include("config.php"); $strSQL = "SELECT * FROM member WHERE m_user = '".trim($_POST['txtEmail'])."' OR m_tel = '".trim($_POST['txtTel'])."' "; $objQuery = mysql_query($strSQL); $objResult = mysql_fetch_array($objQuery); if(!$objResult) { echo "Not Found Username or Email!"; } else { echo "Your password send successful.<br>Send to mail : ".$objResult["m_email"]; // ชื่อไฟล์ sendmail.php เพื่อรับค่าจาก form $MailTo = $objResult["m_email"]; $MailFrom = "admin"; $MailSubject = "Your Account information username and password."; $MailMessage = "FORGOT YOU PASSWORD<br>"; $MailMessage .= "NAME: ".$objResult["m_name"]."<br>"; $MailMessage .= "USERNAME : ".$objResult["m_user"]."<br>"; $MailMessage .= "PASSWORD : ".$objResult["m_pass"]."<br>"; $Headers = "MIME-Version: 1.0\r\n" ; $Headers .= "Content-type: text/html; charset=windows-874\r\n" ; // ส่งข้อความเป็นภาษาไทย ใช้ "windows-874" $Headers .= "From: ".$MailFrom." <".$MailFrom.">\r\n" ; $Headers .= "Reply-to: ".$MailFrom." <".$MailFrom.">\r\n" ; $Headers .= "X-Priority: 3\r\n" ; $Headers .= "X-Mailer: PHP mailer\r\n" ; if(mail($MailTo, $MailSubject , $MailMessage, $Headers, $MailFrom)) } ?>
<?php require_once('class.phpmailer.php'); $mail = new PHPMailer(); $mail->IsHTML(true); $mail->IsSMTP(); $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = ""; // sets the prefix to the servier $mail->Host = "mail.thaicreate.com"; // sets GMAIL as the SMTP server $mail->Port = 25; // set the SMTP port for the GMAIL server $mail->Username = "[email protected]"; // GMAIL username $mail->Password = "xxxxxxx"; // GMAIL password $mail->From = "[email protected]"; // "[email protected]"; //$mail->AddReplyTo = "[email protected]"; // Reply $mail->FromName = "Mr.Weerachai Nukitram"; // set from Name $mail->Subject = "Test sending mail."; $mail->Body = "My Body & <b>My Description</b>"; $mail->AddAddress("[email protected]", "Mr.Adisorn Boonsong"); // to Address $mail->Send(); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง