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:/software/Services/EmailPenpalAfrica/php -247sms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/software/Services/EmailPenpalAfrica/php -247sms//sendmailclient.php
<?php 

function sendmailtoclient ($clientEmail,$mess1,$mess2,$subj,$mfrom,$mfromname)
{
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; 

//$mail->Host     = "smtp.sendgrid.net"; // SMTP server
//$mail->Username = 'apikey';
//$mail->Password = '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'; 



$mail->Host     = "mail.smtphubs.com"; // SMTP server
$mail->Username = '247sms_smtp';
$mail->Password = 'zb6YjTR0X7AFDxDMejU0u7gh'; 
//$mail->SMTPKeepAlive = true;   
//$mail->Mailer = �smtp�; // don't change the quotes!
//$mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only


//$mail->Host     = "in-v3.mailjet.com"; // SMTP server
//$mail->Username = 'e80ff467885e0981a03d24149ca5caf3';
//$mail->Password = 'ca6ae3b2d80a7b5be4cb46256d9549ec'; 


//$mail->Host     = "smtp.mailersend.net"; // SMTP server
//$mail->Username = 'MS_ZIVAWA@penpalamerica.com';
//$mail->Password = 'jdsOJ8R67Vu98WTJ'; 
//$mail->SMTPSecure = "tls";                           
//Set TCP port to connect to
//$mail->Port = 25;    


//$mail->Host     = "smtp.sendgrid.net"; // SMTP server
//$mail->Username = 'apikey';
//$mail->Password = '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'; 


//$mail->Host     = "mail.247sms.com"; // SMTP server
//$mail->Username = 'bonny@247sms.com';
//$mail->Password = 'more1922'; 


$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()) {

echo "not sent ". $mail ->ErrorInfo;


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