| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/(Del)yunfung.com.hk/en/ |
Upload File : |
<?
$name = $_POST["name"];
$email = $_POST["email"];
//$phone = $_POST["phone"];
$subject = $_POST["subject"];
$message = $_POST["message"];
$INCLUDE_DIR = "";
$to = "";
//require("phpunit.php");
require($INCLUDE_DIR . "class.phpmailer.php");
error_reporting(E_ALL);
$body = '<HTML>';
$body .= '<HEAD>';
$body .= '<TITLE></TITLE>';
$body .= '<META http-equiv=Content-Type content=text/html; charset=big5>';
$body .= '<link href="style.css" rel="stylesheet" type="text/css" />';
$body .= '</HEAD>';
$body .= '<body LINK=#0000ff VLINK=#800080 bgcolor=#FFFFFF leftMargin=10 topMargin=20 marginheight=0 marginwidth=0>';
$body .= '<p style="font-family:Arial;font-size=10">';
$body .= "Contact Name: ". $name;
$body .= "<br>Email Address: ". $email;
//$body .= "<br>Tel/ Mobile: ". $phone;
$body .= "<br>Message: ". $message;
//$body .= "<br>IP: ". getenv("REMOTE_ADDR");
$body .= '</p>';
$body .= '</BODY>';
$body .= '</HTML>';
$FromEmail=$email;
$to="to@yunfung.com.hk";
$FromName="Online Enquiry";
$x_mail = new PHPMailer();
$x_mail->IsSMTP();
$x_mail->Host = "localhost";
$x_mail->SMTPAuth = true;
$x_mail->charSet = "big5";
//$x_mail->Username = "smtp@apptailor.com";
//$x_mail->Password = "82308883";
$x_mail->From = $email;
$x_mail->FromName = $FromName;
$x_mail->AddAddress($to,$to);
$x_mail->WordWrap = 50;
$x_mail->IsHTML(true);
$x_mail->Subject = $subject;
$x_mail->Body = $body;
$x_mail->Send();
header("Location: enquires.php");
?>