<?php require_once ( "class.phpmailer.php" ); require_once ( "class.smtp.php" ); require_once ( "language/phpmailer.lang-es.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); ?> <style type="text/css"> <!-- .style1 { font-size: small; color: #FFFFFF; } body { background-image: url(images/background.jpg); } .style2 { color: #FFFFFF; font-weight: bold; } a:link { color: #FFFFFF; text-decoration: underline; } a:visited { text-decoration: underline; color: #FFFFFF; } a:hover { text-decoration: none; color: #FFFFFF; } a:active { text-decoration: underline; color: #FFFFFF; } --> </style> <table width="70%" border="0" align="center"> <tr> <td><span class="style1"> <?php if(!$objResult) { echo "Not Found Username or Email!"; } else { echo "Your password send successful.<br> Send to mail : ".$objResult["m_email"]; ?> <? $MailTo = $objResult["m_email"]; $MailFrom = "Forgot Password"; $MailSubject = "Your Account information Username and Password."; $strMessage .= ""; $strMessage .= "NAME : ".$objResult["m_name"]."<br>"; $strMessage .= "USERNAME : ".$objResult["m_user"]."<br>"; $strMessage .= "PASSWORD : ".$objResult["m_pass"]."<br>"; $strMessage .= "xxxx<br>"; $strMessage .= "=================================<br>"; $mail = new PHPMailer(); $mail->IsSMTP(); // Use SMTP $mail->CharSet = 'windows-874'; $mail->Host = "smtp.gmail.com"; $mail->SMTPDebug = 2; $mail->SMTPAuth = TRUE; $mail->SMTPSecure = "tls"; $mail->Port = 587; $mail->Username = '[email protected]'; // SMTP account username - Gmail setting $mail->Password = 'xxx'; // SMTP account password - Gmail setting $mail->Priority = 1; // Highest priority - Email priority (1 = High, 3 = Normal, 5 = low) $mail->CharSet = 'windows-874'; $mail->Encoding = '8bit'; $mail->Subject = $MailSubject; $mail->ContentType = 'text/html; charset=utf-8\r\n'; $mail->FromName = "[email protected]"; $mail->Subject = $MailSubject; $mail->Body = $strMessage; $mail->WordWrap = 70; // RFC 2822 Compliant = Max 998 characters per line $mail->AddAddress( $MailTo); // To: $mail->isHTML( TRUE ); $mail->Send(); $mail->SmtpClose(); ?> </span></td> </tr> </table> <?php } ?> <table width="70%" border="0" align="center"> <tr> <td align="center"><a href="login.php"><img src="images/people-icon.png" width="117" height="108" /></a></td> </tr> <tr> <td align="center"><span class="style2">LOGIN</span></td> </tr> </table>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง