Hola al intentar enviar un mail con PHP mailer me devolvia error.
Puse la propiedad SMTPDebug=2 para ver si obtenia mas informacion del problema y lo que me aparece es lo siguiente:
11:44:10 SERVER -> CLIENT: 220 mx.google.com ESMTP g11sm2788050wjr.25 - gsmtp 2015-05-22 11:44:10 CLIENT -> SERVER: EHLO localhost 2015-05-22 11:44:10 SERVER -> CLIENT: 250-mx.google.com at your service, [47.60.191.48] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 2015-05-22 11:44:10 CLIENT -> SERVER: STARTTLS 2015-05-22 11:44:10 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 2015-05-22 11:44:11 CLIENT -> SERVER: EHLO localhost 2015-05-22 11:44:11 SERVER -> CLIENT: 250-mx.google.com at your service, [47.60.191.48] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 2015-05-22 11:44:11 CLIENT -> SERVER: AUTH LOGIN 2015-05-22 11:44:11 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2015-05-22 11:44:11 CLIENT -> SERVER: am9zZXhhYmllci5zYW56LnVyZGlhbGVzQGdtYWlsLmNvbQ== 2015-05-22 11:44:11 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2015-05-22 11:44:11 CLIENT -> SERVER: bGFua29waXhnbWFpbDE= 2015-05-22 11:44:11 SERVER -> CLIENT: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 g11sm2788050wjr.25 - gsmtp 2015-05-22 11:44:11 SMTP ERROR: Password command failed: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 g11sm2788050wjr.25 - gsmtp 2015-05-22 11:44:11 SMTP Error: Could not authenticate. 2015-05-22 11:44:11 CLIENT -> SERVER: QUIT 2015-05-22 11:44:11 SERVER -> CLIENT: 221 2.0.0 closing connection g11sm2788050wjr.25 - gsmtp 2015-05-22 11:44:11 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
La cosa es que estoy usando mi cuenta de Gmail para intentar enviar ese mail,y acabo de ver en otra cuenta mia que Gmail interpreta que alguien esta usando esa cuenta y bloquea el logging,sabeis que pasos podria dar para que lo permitiese?
Muchas gracias
un saludo