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/penpalamerica.com/wwwroot/penpal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/penpalamerica.com/wwwroot/penpal//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; 
//if ($mfromname=="Penpal America"){
//$mail->Host     = "smtp.sendgrid.net"; // SMTP server
//$mail->Username = 'apikey';
//$mail->Password = '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'; 
//}else{

    $mail->Host = 'mail.penpalamerica.com'; // Specify main and backup SMTP servers
    $mail->SMTPAuth = true; // Enable SMTP authentication
    $mail->Username   = "nosa.osahon@penpalamerica.com";
    $mail->Password   = "NosaMore1922#";


//$mail->Host     = "smtp-relay.sendinblue.com"; // SMTP server
//$mail->Username = 'nosa.osahon@gmail.com';
//$mail->Password = '5GkxMRq4jbB9W0aV'; 
//$mail->SMTPSecure = "tls";                           
//Set TCP port to connect to
//$mail->Port = 587;    


//}
//$mail->Host     = "mail.penpalamerica.com"; // SMTP server
//$mail->Username = 'nosa.osahon@penpalamerica.com';
//$mail->Password = 'more1922'; 
//$mail->SMTPSecure = "tls";                           
//Set TCP port to connect to
//$mail->Port =25;    

$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