$message = '<html><body>'; $message .= '<h2 style="color:#66666;">สนใจพื้นที่งาน : '.$reserve_Title.'</h2><br/>'; $message .= '<img src="http://thailandexhibition.com/Booth/images/mail-head.png" alt="Website Change Request" />'; $message .= '<table rules="all" style="border-color: #666;" cellpadding="5" width="500">'; $message .= "<tr><td style='background:#eee;'><strong>จากคุณ:</strong> </td><td>".strip_tags($_POST['exhibiter_name'])."</td></tr>"; $message .= "<tr><td style='background: #eee;'><strong>Email:</strong> </td><td>".strip_tags($_POST['exhibiter_email'])."</td></tr>"; $message .= "<tr><td style='background: #eee;'><strong>เบอร์ติดต่อ :</strong> </td><td>".strip_tags($_POST['exhibiter_tel'])."</td></tr>"; $message .= "<tr><td style='background: #eee;'><strong>ประเภทธุรกิจ :</strong> </td><td>".strip_tags($_POST['exhibiter_business'])."</td></tr>"; $message .= "</table>"; $message .= "<br/>"; $message .= "<div style='padding:15px 0; margin:10px 0 0 0; width:500px; font-size:13px; font-family:Arial, Helvetica, sans-serif;'>".strip_tags($_POST['text'])."</div>"; $message .= "<br/>"; $message .= "</body></html>"; $Admin_mail ="[email protected]"; $ORG_email =$ORG_email; echo $ORG_email; // แสดงเมลล์ปลายทาง $from = "[email protected]"; $subject = 'Reservation Enquiry From :'.$_POST['exhibiter_name']; $subject2 = '=?UTF-8?B?'.base64_encode($subject).'?='; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; $headers .= 'From: abc.com <'.$from.'>'. "\r\n"; $headers .= "Reply-To: ".$from."\r\n"; $headers .= "X-Priority: 0\r\n"; $headers .= "X-Mailer: PHP mailer\r\n" ; $headers .= "Bcc: ".$Admin_mail."\r\n"; if (mail($ORG_email,$subject2,$message,$headers)) { echo' <div style="float:left; clear:both; margin:15px 0; font-size:14px; width:330px; padding:15px 0;"> <div style="float:left; padding:0 20px 0 0;"><img src="images/Mail_send.png" width="64" height="64" /> </div> <div style="padding:15px 0 0 0;">ข้อมูลของคุณได้ส่งไปยังระบบเเล้ว</div> <div style="font-size:13px; padding:0; color:#333;">รอการติดต่อ หรือ email เเจ้งข้อมูลกลับไป</div> </div>'; } else { echo 'There was a problem sending the email.'; }
<? $strTo = '[email protected]'; // อีเมล์จริง $strSubject = 'TEST EMAIL'; $strHeader = "Content-type: text/html; charset=windows-874\r\n"; // or UTF-8 // //$strHeader .= "From: ".$_POST["txtFormName"]."<".$_POST["txtFormEmail"].">\r\nReply-To: ".$_POST["txtFormEmail"].""; $strMessage = 'TEST TEST'; $flgSend = @mail($strTo,$strSubject,$strMessage,$strHeader); // @ = No Show Error // if($flgSend) { echo "Email Sending."; } else { echo "Email Can Not Send."; } ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง