403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/penpaleurope.com/backup/app/Penpal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/penpaleurope.com/backup/app/Penpal//sendmailclient.php
<?php

function sendmailtoclient ($clientEmail,$mess1,$mess2,$subj,$mfrom,$mfromname,$gate)
{
require_once("phpmailer/class.phpmailer.php");
require_once("phpmailer/class.smtp.php");
$mail = new PHPMailer();
$mail->IsSMTP();  // telling the class to use SMTP
$mail->SMTPAuth = true;

if($gate =="1"){
	$mail->Host     = "smtp.sendgrid.net"; // SMTP server
	$mail->Username = '247sms';
	$mail->Password = 'more1922';
}else{
	$mail->Host     = "mail.penpalafrica.com"; // SMTP server
	$mail->Username = 'support@penpalafrica.com';
	$mail->Password = 'more1922';
	//$mail->Host     = "smtp.sendgrid.net"; // SMTP server
	//$mail->Username = 'jamesosahon';
	//$mail->Password = 'more1922#';

      //  $mail->Host     = "smtp.mandrillapp.com"; // SMTP server
	//$mail->Port = 587;                       // Set the SMTP port
	//$mail->SMTPAuth = true;                          // Enable SMTP authentication
	//$mail->Username = 'nosa.osahon@gmail.com';
	//$mail->Password = 'More1922#';
	//$mail->SMTPSecure = 'tls';                            // Enable encryption, 'ssl' also accepted
}

$mail->From     = $mfrom;
$mail->FromName     = $mfromname;
$mail->AddAddress($clientEmail);
//$mail->AddBCC("annmarie.johnson@sms4real.com");
$mail->AddBCC("nosa@247sms.com");

//$mail->WordWrap = 10;
$mail->Subject = $subj;
$mail->Body    = $mess1;
$mail->IsHTML(true);
$mail->AltBody =$mess2;

if(!$mail->Send()) {

return '-1';

} else {

return '0';
}

}

//echo sendmailtoclient("nosa.osahon@gmail.com","testtest","testtest","hello");

Function getMyIP()
{
$ipaddress = '';
     if (getenv('HTTP_CLIENT_IP'))
         $ipaddress = getenv('HTTP_CLIENT_IP');
     else if(getenv('HTTP_X_FORWARDED_FOR'))
         $ipaddress = getenv('HTTP_X_FORWARDED_FOR');
     else if(getenv('HTTP_X_FORWARDED'))
         $ipaddress = getenv('HTTP_X_FORWARDED');
     else if(getenv('HTTP_FORWARDED_FOR'))
         $ipaddress = getenv('HTTP_FORWARDED_FOR');
     else if(getenv('HTTP_FORWARDED'))
        $ipaddress = getenv('HTTP_FORWARDED');
     else if(getenv('REMOTE_ADDR'))
         $ipaddress = getenv('REMOTE_ADDR');
     else
         $ipaddress = 'UNKNOWN';

     return $ipaddress;

}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit