| 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/onesolution.com.hk/support/ |
Upload File : |
<?php
ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
error_reporting(E_ALL);
$name = "Name";
$email = $email;
$subject = "One Solution Limited - Support";
//$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 .= 'Thankyou for using One Solution Limited service.';
$body .= 'Please use the following URL to accept the job.';
$body .= "<br>Job no:". $jobid;
$body .= "<br><a href='http://www.onesolution.com.hk/support/jobdetail.php?id=". $md5id ."'>http://www.onesolution.com.hk/support/jobdetail.php?id=". $md5id ."</a>";
$body .= '<br>by'.$_SESSION['userid'];
$body .= '</p>';
$body .= '</BODY>';
$body .= '</HTML>';
$FromEmail = "support@onesolution.com.hk";
$to=$email;
$FromName = "One Solution Limited - Support";
$x_mail = new PHPMailer();
$x_mail->IsSMTP();
$x_mail->Host = "smtp.pacific.net.hk";
$x_mail->SMTPAuth = true;
$x_mail->charSet = "utf-8";
$x_mail->From = $FromEmail;
$x_mail->FromName = $FromName;
/*
$to = str_replace(",",";",$to);
$l = strlen($to);
while ($l>0)
{
$x_mail->AddAddress(substr($to,0,strpos($to,";")),substr($to,0,strpos($to,";")));
$to = substr($to,strpos($to,";")+1);
if (strpos($email,";") == 0)
{
$l = 0;
}
}
*/
$x_mail->AddAddress($to,$to);
//$x_mail->AddAddress("support@onesolution.com.hk");
$x_mail->AddAddress("jonathantsang@onesolution.com.hk");
$x_mail->WordWrap = 50;
$x_mail->IsHTML(true);
$x_mail->Subject = $subject;
$x_mail->Body = $body;
$x_mail->Send();
?>