<?php
echo "Test digout";
include "class.phpmailer.php";
include "class.smtp.php";

$email_user = "noreply@vips.digitaltryout.com";
$email_password = "$p4ssV1ps18*";
$the_subject = "Prueba PHP Mailer";
$address_to = "hello@armandojm.com, armando@wearetrafika.com, odnam93@gmail.com";
$from_name = "Vips";
$phpmailer = new PHPMailer();

// ---------- datos de la cuenta de Gmail -------------------------------
$phpmailer->Username = $email_user;
$phpmailer->Password = $email_password; 
//-----------------------------------------------------------------------
// $phpmailer->SMTPDebug = 1;
$phpmailer->SMTPSecure = 'ssl';
$phpmailer->Host = "mail.digitaltryout.com"; // GMail
$phpmailer->Port = 465;
$phpmailer->IsSMTP(); // use SMTP
$phpmailer->SMTPAuth = true;

$phpmailer->setFrom($phpmailer->Username,$from_name);
$phpmailer->AddAddress($address_to); // recipients email

$phpmailer->Subject = $the_subject;	
$phpmailer->Body .="<h1 style='color:#3498db;'>Hola Mundo!</h1>";
$phpmailer->Body .= "<p>Mensaje personalizado</p>";
$phpmailer->Body .= "<p>Fecha y Hora: ".date("d-m-Y h:i:s")."</p>";
$phpmailer->IsHTML(true);


if(!$phpmailer->Send()) {
  echo "Error: " . $phpmailer->ErrorInfo;
} else {
  echo "Mensaje enviado correctamente";
}
?>