403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 8.2.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/thegioimaycongnghiep.vn/public_html/site/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/thegioimaycongnghiep.vn/public_html/site/helpers/mail_helper.php
<?php
	function send_mail($name,$from,$to,$subject,$message)
	{        
		$mess =$message;
		$headers = "From: ".$name." <".$from.">\n";
		$headers .= "Reply-To: ".$name." <".$from.">\n";
		$headers .= "MIME-Version: 1.0\n";
		$headers .= "Content-Type: text/html; charset=\"utf-8\"\n";
		return @mail( $to, $subject, $mess, $headers );          
	}
	
	function send($to,$subject,$message)
	{
		$CI = get_instance(); 
		$mess =$message;
		$contact_name = "=?UTF-8?B?".base64_encode($CI->config->item('contact_name')).'?=';
		$headers = "From: ".$contact_name." <".$CI->config->item('contact_email').">\n";
		$headers .= "Reply-To: ".$contact_name." <".$CI->config->item('contact_email').">\n";
		$headers .= "MIME-Version: 1.0\n";
		$headers .= "Content-Type: text/html; charset=UTF-8\n";
		return @mail( $to, "=?UTF-8?B?".base64_encode($subject).'?=', $mess, $headers );          
	}
	
	function sendshare($nguoigui,$emailnguoigui,$emailnguoinhan,$subject,$message)
	{
		$CI = get_instance();          
		$mess =$message;
		$nguoigui = "=?UTF-8?B?".base64_encode($nguoigui).'?='; 
		$headers = "From: ".$nguoigui." <".$emailnguoigui.">\n";
		$headers .= "Reply-To: ".$nguoigui." <".$emailnguoigui.">\n";
		$headers .= "MIME-Version: 1.0\n";
		$headers .= "Content-Type: text/html; charset=UTF-8\n";
		return @mail( $emailnguoinhan, "=?UTF-8?B?".base64_encode($subject).'?=', $mess, $headers );          
	} 
	
	function info_send_mail()
	{
		$CI = get_instance();
		$CI->load->config('config_contact');
		$mess = '<div>----------------------------</div>';
		$mess .='<div><b>'.$CI->config->item('contact_name').'</b></div>';
		$mess .='<div><b>Địa chỉ:</b> '.$CI->config->item('contact_address').'</div>';
		$mess .='<div><b>Điện thoại:</b> '.$CI->config->item('contact_phone').' - '.$CI->config->item('contact_mobile').'</div>';
		$mess .='<div><b>Email:</b> '.$CI->config->item('contact_email').'</div>';
		$mess .='<div><b>Fax:</b> '.$CI->config->item('contact_fax').'</div>';
		return $mess;
	}  
	
	function sendmail($mailto, $nameto, $subject, $content, $frommail='', $fromname='')
	{
		date_default_timezone_set(date_default_timezone_get());
		
		require_once APPPATH."libraries/class.smtp.php"; 
		require_once APPPATH."libraries/class.phpmailer.php";
		
		//Thông tin xac thực
		$mail             = new PHPMailer();
		//$mail->Mailer 	  = "smtp";
		/*$mail->Host       = "mail.quatangmythuat.com";
		$mail->SMTPAuth   = true;
		$mail->Username   = "info@quatangmythuat.com";
		$mail->Password   = "yRGXL3qB";
		$mail->IsHTML(true) ;
		$mail->From       = "info@quatangmythuat.com";	//$frommail ; 
		$mail->FromName   = "www.quatangmythuat.com"; //$fromname ;*/
		
		$mail->IsSMTP();
		$mail->SMTPAuth   = true;
		$mail->SMTPSecure = "ssl";
		$mail->Host       = "smtp.gmail.com";
		$mail->Port       = 465;
		$mail->SMTPAuth   = true;
		$mail->Username   = "wwworgsvn@gmail.com"; //"quatangmythuat02@gmail.com";
		$mail->Password   = "kddlalpcuzyoxmkx";	//"quatangmythuat1986";
		$mail->AddReplyTo("quatangmythuat@gmail.com", "www.quatangmythuat.com");
		$mail->SetFrom("quatangmythuat@gmail.com", "www.quatangmythuat.com");
		$mail->IsHTML(true) ;
		//send to email
		$mail->AddAddress($mailto, $nameto);
		$mail->Subject    = $subject ;
		$mail->MsgHTML($content);
		return $mail->Send() ;
	}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit