<?php $mailto = $_POST["mailto"]; $name = $_POST["name"]; $name = $_POST["name"]; $email = $_POST["email"]; $phone = $_POST["phone"]; $description = $_POST["description"]; $url = $_POST["url"]; // multiple recipients $to = '$mailto'; // note the comma // subject $subject = 'มีผู้สนใจประกาศของคุณและฝากเบอร์ให้คุณติดต่อกลับ!'; // message $message = ' <html> <head> <title>ผู้สนใจอสังหาฯของคุณ ฝากเบอร์ไว้ให้คุณติดต่อกลับ</title> </head> <body> <h3>ผู้สนใจอสังหาฯของคุณ ฝากเบอร์ไว้ให้คุณติดต่อกลับ</h3> <? date("H:i:s") ?> <table> <tr>' .'Name : $name <br>' .'Email : $email <br>' .'Phone : $phone <br>'.' </tr> <tr> รายละเอียดเพิ่มเติม : $description <br><br>' .'หน้าประกาศที่ติดต่อมา คลิกดูได้ที่นี่'.'<br>' .' $url <br><br>' .'ขอขอบคุณค่ะที่ใช้บริการเว็บของเรา <br> </tr> </table> </body> </html>'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; // Additional headers $headers .='From: Dfirstproperty.net <[email protected]>'."\r\n"; $headers .= 'Reply-to: [email protected]' . "\r\n"; $headers .= 'Cc: [email protected]' . "\r\n"; $headers .= 'Bcc: [email protected]' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); if (mail) { echo '<div class="error-layout"> <h1>SEND TO EMAIL</h1> <h3>กรุณารอ 5 วินาที ขอบคุณค่ะ</h3> </div>'; } else { echo '<div class="error-layout"> <h1>NO SEND TO EMAIL</h1> <h3>กรุณารอ 5 วินาที กลับไปส่งใหม่ค่ะ</h3> </div>'; } ?>
$headers .= 'Cc: info@dfirstproperty.com' . "\r\n"; $headers .= 'Bcc: info@dfirstproperty.com' . "\r\n";
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง