PHPMailer
Publicado por aldo (1058 intervenciones) el 09/01/2016 19:22:08
que tal a todos, estoy intentando con un codigo enviar una contraseña aleatoria a una cuenta de correo, pero me da este mensaje:
2016-01-09 17:50:16 CLIENT -> SERVER: EHLO localhost 2016-01-09 17:50:16 CLIENT -> SERVER: STARTTLS 2016-01-09 17:50:17 CLIENT -> SERVER: EHLO localhost 2016-01-09 17:50:17 CLIENT -> SERVER: AUTH LOGIN 2016-01-09 17:50:17 CLIENT -> SERVER: 2016-01-09 17:50:17 CLIENT -> SERVER: aEwxMz0qLVc= 2016-01-09 17:50:17 SMTP ERROR: Password command failed: 535 5.0.0 Authentication Failed 2016-01-09 17:50:17 CLIENT -> SERVER: QUIT 2016-01-09 17:50:17 SMTP connect() failed. El mensaje no se pudo enviarError: SMTP connect() failed.
dice que falló la Autenticación, pero en el codigo la coloqué asi:
$smtp->SMTPAuth = true; // enable SMTP authentication
$smtp->SMTPSecure = "tls";
2016-01-09 17:50:16 CLIENT -> SERVER: EHLO localhost 2016-01-09 17:50:16 CLIENT -> SERVER: STARTTLS 2016-01-09 17:50:17 CLIENT -> SERVER: EHLO localhost 2016-01-09 17:50:17 CLIENT -> SERVER: AUTH LOGIN 2016-01-09 17:50:17 CLIENT -> SERVER: 2016-01-09 17:50:17 CLIENT -> SERVER: aEwxMz0qLVc= 2016-01-09 17:50:17 SMTP ERROR: Password command failed: 535 5.0.0 Authentication Failed 2016-01-09 17:50:17 CLIENT -> SERVER: QUIT 2016-01-09 17:50:17 SMTP connect() failed. El mensaje no se pudo enviarError: SMTP connect() failed.
dice que falló la Autenticación, pero en el codigo la coloqué asi:
$smtp->SMTPAuth = true; // enable SMTP authentication
$smtp->SMTPSecure = "tls";
Valora esta pregunta


0