Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/05/2014, 13:34
R4yl31gh
 
Fecha de Ingreso: octubre-2013
Mensajes: 6
Antigüedad: 10 años, 6 meses
Puntos: 0
Exclamación Error con phpmailer

Alguien me podria ayudar he buscado este error en todos lados y no lo encuentro ni se q es lo q lo provoca voy a dejar el codigo aqui, y el error q da. Antes de mano gracias a todos.

Codigo:

date_default_timezone_set('Etc/UTC');
require 'PHPMailerAutoload.php';
$mail = new PHPMailer();
$mail->isSMTP();
$mail->SMTPDebug = 1;
$mail->Debugoutput = 'html';
$mail->Host = "smtp.ejemplo.com";
$mail->Port = 25;
$mail->SMTPAuth = true;
$mail->Username = "[email protected]";
$mail->Password = "pass";
$mail->setFrom('[email protected]', 'First Last');
$mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer SMTP test';
$mail->msgHTML("hola");
$mail->AltBody = 'This is a plain-text message body';
if (!$mail->send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
}

ERROR:

CLIENT -> SERVER: EHLO 10.8.1.45
CLIENT -> SERVER: AUTH LOGIN
SMTP ERROR: AUTH command failed: 503 5.5.1 Error: authentication not enabled
CLIENT -> SERVER: QUIT
SMTP connect() failed.
Mailer Error: SMTP connect() failed.