| 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/hanniel/static/ |
Upload File : |
<?php
require 'vendor/autoload.php';
use PHPMailer\PHPMailer\PHPMailer;
$mail = new PHPMailer;
// $mail->SMTPDebug = 3;
$mail->IsSMTP();
$mail->Host = 'smtp-relay.brevo.com';
$mail->SMTPSecure = 'tsl'; /*Protocolo SSL o TLS*/
$mail->Port = 587; /*Puerto de conexión al servidor SMTP*/
$mail->SMTPAuth = true; /*Para habilitar o deshabilitar la autenticac*/
//$mail->Username = 'contactoweb@hannielmaldonado.com'; /*Usuario, no*/
//$mail->Password = 'eU8VZshR(AT*'; /*Tu contraseña*/
$mail->Username = 'mlizarraga@quattromg.com';
$mail->Password = 'xsmtpsib-616dc26c25d23e7d8c6f3a8c894b142fde204627c3be10c7a8212a30a4512bd1-dAbwqEv7IUCAx1Kr';
$mail->From = 'hanniel@hannielmaldonado.com'; /*Correo electrónico que estamos autenticando*/
$mail->FromName = 'Hanniel Maldonado'; /*Puedes poner tu nombre, el de tu empresa, nombre de tu web, etc.*/
$mail->CharSet = 'UTF-8'; /*Codificación del mensaje*/
$mail->ClearAllRecipients( );
$mail->AddAddress("hanniel@hannielmaldonado.com");
// $mail->AddCC($ccmail);
$mail->IsHTML(true); //podemos activar o desactivar HTML en mensaje
$mail->Subject = "Contacto";
$msg = "<strong>Nombre:</strong> ".$_POST['nombre']."<br><strong>Correo:</strong> ".$_POST['correo']."<br><br>".$_POST['mensaje'];
$mail->Body = $msg;
if($mail->send())
{
// echo "Message has been sent successfully";
echo 1;
}
else
{
echo "Mailer Error: " . $mail->ErrorInfo;
}
?>