<?php
include("class.phpmailer.php");
include("class.smtp.php");

$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
/*$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.gmail.com";
$mail->Port = 465;
$mail->Username = "lorena.lzp1010@gmail.com";
$mail->Password = "edurne1026";

$mail->From = "lorena.lzp1010@gmail.com";*/

$mail->SMTPSecure = "ssl";
$mail->Host = "mail.lorenazapatamyphpinc.com";
$mail->Port = 465;
$mail->Username = "admini@lorenazapatamyphpinc.com";
$mail->Password = "lorena10";

$mail->From = "admini@lorenazapatamyphpinc.com";

$mail->FromName = "Lorena Zapata Via lorenazapatago@lorenazapatamyphpinc.com";
$mail->Subject = "enviado desde php desde la cuenta lorenazapatago@lorenazapatamyphpinc.com";
$mail->AltBody = "hola, este es mi nuevo mensaje de prueba";
$mail->MsgHTML("Hola.... les mando este correito desde un programa que hace correos creado por mi<br><b>xxxx</b>.");
//$mail->AddAttachment("files/files.zip");
//$mail->AddAttachment("files/img03.jpg");
$mail->AddAddress("lorenazapata10@hotmail.com", "de Lorena Via PHP ");
$mail->IsHTML(true);

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