require_once('class/class.phpmailer.php'); require_once('class/class.smtp.php'); require_once('class/class.pop3.php'); ////////////////////////phpmailer////////////////////////// $mail = new PHPMailer(); $mail->IsHTML(true); $mail->IsSMTP(); $mail->CharSet = "utf-8"; $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // sets the prefix to the servier $mail->Host = "smtp.toscanavalley.com"; // sets as the SMTP server $mail->Port = 25; // set the SMTP port for the server $mail->Username = "[email protected]"; // username $mail->Password = "7896"; // password $mail->From = "$email"; // "[email protected]"; $mail->FromName = "$name"; // set from Name $mail->Subject = "Contact Hotel La casetta at Toscana Valley ."; $mail->Body ="To Hotel La casetta <br> You have new E-amil from your Customer<br><br> ". "Name : $name<br>". "Email: $email<br>". "Phone : $phone<br>". "Subject : $subject<br>". "Message : $message<br><br>". "Thank <br> From Automatic E-mail systems."; $mail->AddAddress("[email protected]", "nardanong.s"); // to Address //$mail->AddAttachment("zip/PHPMailer_v5.1.zip"); //$mail->AddAttachment("zip/PHPMailer_v5.2.zip"); //$mail->AddCC("[email protected]", "Nardanong Sukbua"); //CC //$mail->AddBCC("[email protected]", "Nannapas"); //BCC $mail->set('X-Priority', '1'); //Priority 1 = High, 3 = Normal, 5 = low :Security if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; return false; } else { echo "Message sent!"; return true; } ?>
$mail->Host = "smtp.toscanavalley.com"; // sets as the SMTP server
$mail->Host = "64.13.192.121"; // sets as the SMTP server
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง