Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/07/2013, 16:02
Avatar de CesarHC
CesarHC
 
Fecha de Ingreso: junio-2011
Ubicación: localhost
Mensajes: 566
Antigüedad: 13 años, 9 meses
Puntos: 56
Respuesta: Error al enviar correo con PHPMailer

Prueba este primero aver si te lo envia, para verificar que phpmailer esta funcionando correctamente.

Código PHP:
<?php

require("class.phpmailer.php");

$mail = new PHPMailer();

$mail->IsSMTP();  // telling the class to use SMTP
$mail->Host     "smtp.example.com"// SMTP server

$mail->From     "[email protected]";
$mail->AddAddress("[email protected]");

$mail->Subject  "First PHPMailer Message";
$mail->Body     "Hi! \n\n This is my first e-mail sent through PHPMailer.";
$mail->WordWrap 50;

if(!
$mail->Send()) {
  echo 
'Message was not sent.';
  echo 
'Mailer error: ' $mail->ErrorInfo;
} else {
  echo 
'Message has been sent.';
}
?>
__________________
Solo la práctica no te traicionara ¡¡¡¡¡¡

Seguir el camino tu debes PHP The Right Way.