403Webshell
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/awintours.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/awintours.com/sendEmail.php
<?php
$name		= $_POST["name"];
$phone		= $_POST["phone"];
$email		= $_POST["email"];
$message	= $_POST["message"];

if ($name == '') {
	header("Location: contactus.php"); 
	exit;
} else if  ($email == '') {
	header("Location: contactus.php");
	exit;
}

$INCLUDE_DIR = "";
$to = "";

//require("phpunit.php");
require($INCLUDE_DIR . "class.phpmailer.php");
error_reporting(E_ALL);


$body = '<HTML>';
$body .= '<HEAD>';
$body .= '<TITLE>Avonwin Holdings Tours Limited</TITLE>';
$body .= '<META http-equiv=Content-Type content=text/html; charset=UTF-8>';
$body .= '</HEAD>';
$body .= '<BODY>';
$body .= '<table width="600" border="0" cellpadding="0" cellspacing="0" style="font-family:Arial;font-size:12px;">';
$body .= '<tr>';
$body .= '  <td height="35" colspan="2" align="center"><strong>&nbsp;&nbsp;網上意見/查詢</strong></td>';
$body .= '</tr>';
$body .= '<tr><td width="132" height="25" align="left" valign="top">聯絡人姓名:&nbsp;&nbsp;</td>';
$body .= '<td width="468" align="left" valign="top">'.$name.'</td></tr>';
$body .= '<tr><td width="132" height="25" align="left" valign="top">聯絡人電話:&nbsp;&nbsp;</td>';
$body .= '<td width="468" align="left" valign="top">'.$phone.'</td></tr>';
$body .= '<tr><td width="132" height="25" align="left" valign="top">聯絡人電郵:&nbsp;&nbsp;</td>';
$body .= '<td width="468" align="left" valign="top">'.$email.'</td></tr>';
$body .= '<tr><td width="132" height="25" align="left" valign="top">內容:&nbsp;&nbsp;</td>';
$body .= '<td width="468" align="left" valign="top">'.$message.'</td></tr>';
$body .= '</table>';
$body .= '</BODY>';
$body .= '</HTML>';

$subject="收到一個客人網上查詢的電郵";
$FromEmail=$email;
$to="sales@awintours.com";
$FromName=$name;
$x_mail = new PHPMailer();
$x_mail->IsSMTP();
//$x_mail->Host = "smtp.pacific.net.hk";
$x_mail->Host = "localhost";
$x_mail->SMTPAuth = true;
$x_mail->charSet = "UTF-8";
$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: contactus_reply.php");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit