 .
.Uso php bajo windows con el IIS. Y despues de haber buscado en al documentacion y mucho pelear llego hasta este error
Message was not sent
Mailer Error: e[email protected]
No se de donde sale esa e ya que en mi codigo no esta, creo que podría ser algún error que podría haber en la clase, les dejo aqui debajo mi codigo:
Código PHP:
   <?
ini_set("include_path", "C:/php/includes/phpmailer/");
require_once("class.phpmailer.php");
$mail = new PHPMailer();
$mail->language = "es";                 //DEFINE EL IDIOMA DE ERROR
$mail->IsSMTP();                         // send via SMTP
$mail->Host     = "smtp.gmail.com";         // SMTP servers "server1;server2"
$mail->SMTPAuth = true;                  // turn on SMTP authentication
$mail->Username = "nachuki";                // SMTP username
$mail->Password = "******";                // SMTP password
 $mail->From     = "[email protected]";
$mail->FromName = "PHPMailer";
$mail->AddAddress("[email protected]","Nacho"); 
//$mail->AddAddress("[email protected]");         // optional name
$mail->AddReplyTo("[email protected]","Information");
$mail->WordWrap = 50;                          // set word wrap
//$mail->AddAttachment("/var/tmp/file.tar.gz");        // attachment
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); 
$mail->IsHTML(true);                             // send as HTML
$mail->Subject  =  "Here is the subject";
$mail->Body     =  "This is the <b>HTML body</b>";
$mail->AltBody  =  "This is the text-only body";
if(!$mail->Send()) {
   echo "Message was not sent <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}
echo "Message has been sent";
?>    
PD: ¿Les muestro tambien la clase?
 
 

