HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-31-18-78 6.17.0-1017-aws #17~24.04.1-Ubuntu SMP Tue May 26 21:09:53 UTC 2026 aarch64
User: ubuntu (1000)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /var/www/nclive/technc/PHPMailer-master/sendMail.php
<?php
require 'PHPMailerAutoload.php';

$mail = new PHPMailer;

//$mail->SMTPDebug = 3;                               // Enable verbose debug output

$mail->isSMTP();                                      // Set mailer to use SMTP
$mail->Host = 'sarkaripariksha.com';  // Specify main and backup SMTP servers
$mail->SMTPAuth = true;                               // Enable SMTP authentication
$mail->Username = 'support@sarkaripariksha.com';                 // SMTP username
$mail->Password = 'testme1234';                           // SMTP password
$mail->SMTPSecure = 'ssl';                            // Enable TLS encryption, `ssl` also accepted
$mail->Port = 465;                                    // TCP port to connect to

$mail->From = 'support@sarkaripariksha.com';
$mail->FromName = 'SarkariPariksha.com';
$mail->addAddress('ashish@corewebconnections.com', 'Ashish');     // Add a recipient
$mail->addAddress('soniya.gupta@midlandwebnet.com');               // Name is optional
$mail->addReplyTo('support@sarkaripariksha.com', 'Sarkari Pariksha');
//$mail->addCC('cc@example.com');
//$mail->addBCC('bcc@example.com');

$mail->WordWrap = 50;                                 // Set word wrap to 50 characters
//$mail->addAttachment('/var/tmp/file.tar.gz');         // Add attachments
//$mail->addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name
$mail->isHTML(true);                                  // Set email format to HTML

$mail->Subject = 'Here is the subject';
$mail->Body    = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$msg='This is the HTML message body <b>in bold!</b>';

$headers = 'From: support@sarkaripariksha.com' . "\r\n" .
    'Reply-To: support@sarkaripariksha.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail('soniya.gupta@midlandwebnet.com','Here is the subject',$msg,$headers);

if(!$mail->send()) {
    echo 'Message could not be sent.';
    echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
    echo 'Message has been sent';
}