관리-도구
편집 파일: contact_mail.php
<?php session_start(); if($_POST["captcha"]==$_SESSION["captcha_code"]){ $message = '<html><body style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;">'; $message .= '<table rules="all" style="border-color: #666;" cellpadding="10">'; $message .= "<tr style='background: #eee;'><td><strong>Your name:</strong> </td><td>" . strip_tags($_POST['nme']) . "</td></tr>"; $message .= "<tr style='background: #eee;'><td><strong>Your e-mail:</strong> </td><td>" . strip_tags($_POST['email']) . "</td></tr>"; $message .= "<tr style='background: #eee;'><td><strong>Your contact Number:</strong> </td><td>" . strip_tags($_POST['code']) . strip_tags($_POST['phone']) . "</td></tr>"; $message .= "<tr style='background: #eee;'><td><strong>Your Comments:</strong> </td><td>" . strip_tags($_POST['comments']) . "</td></tr>"; $message .= "</table>"; $message .= "</body></html>"; $to = "gadhafi05@gmail.com, metexteam@yahoo.com"; $sender = strip_tags($_POST['email']); $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: Livithomes: Quick Enquiry <info@livithomes.com>' . "\r\n"; $headers .= "Reply-To:" . $sender . "\r\n"; $headers .= 'Bcc: leads.evizon@gmail.com' . "\r\n"; // $headers .= "Bcc: $emailList\r\n"; $subject = "Quick Enquiry From 0000: " . $sender . "\r\n"; mail($to, $subject, $message, $headers); $to1 = strip_tags($_POST['email']); $subject1 = "Thank you " . strip_tags($_POST['nme']) . "\r\n"; $frm = "info@livithomes.com"; $headers1 = "From: " . $frm . "\r\n"; $headers1 .= "Reply-To: ". $frm . "\r\n"; $headers1 .= "MIME-Version: 1.0\r\n"; $headers1 .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $message1 = '<html><body style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;">'; $message1 .= '<table border="none" rules="all" ;" cellpadding="0">'; $message1 .= "<tr style='boder:none;' ><td><strong>Dear Sir,</strong></td></tr>"; $message1 .= "<tr style='boder:none;' ><td>Thank you for your enquiry. Your mail is forwarded to our MARKETING section. We will soon contact with you Thank you.</td></tr>"; $message1 .= "<tr style='boder:none;' ><td>Regards,</td></tr>"; $message1 .= "<tr style='boder:none;' ><td> <p><strong> LIVIT HOMES</strong></p> <p>34/1806 D, Kurickal Arcade, 3rd Floor<br /> N H 47, Edappally P.O., Ernakulam<br /> Cochin - 682024.</p> <p>Tel: +91 484 2984100, 2984200<br /> Mob : +91 97445 22222, 97446 22222</p> <p>e-Mail : info@livithomes.com<br /> www.livithomes.com </p> <p></p></td></tr>"; $message1 .= "</table>"; $message1 .= "</body></html>"; if(mail($to, $subject, $message, $headers)) { print "<p class='success'>Contact Mail Sent.</p>"; } else { print "<p class='Error'>Problem in Sending Mail.</p>"; } } else { print "<p class='Error'>Enter Correct Captcha Code.</p>"; } ?>