I've met an AuthenticationFailedException too
It's strange, I just followed the steps I learned from the books, and it doesn't work.
this is the debug detail:
DEBUG SMTP: useEhlo true, useAuth true
DEBUG: SMTPTransport trying to connect to host "xxxxxxxxx", port 25
DEBUG SMTP RCVD: 220 Welcom to xxxxxxxxx smtp server ESMTP
DEBUG: SMTPTransport connected to host "xxxxxxxxxx", port: 25
DEBUG SMTP SENT: EHLO xxxxxxxx
DEBUG SMTP RCVD: 250-Welcom to my xxxxxxxxxx smtp server
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-PIPELINING
250 8BITMIME
DEBUG SMTP Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP Found extension "AUTH=LOGIN", arg "PLAIN"
DEBUG SMTP Found extension "PIPELINING", arg ""
DEBUG SMTP Found extension "8BITMIME", arg ""
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP SENT: AUTH LOGIN
DEBUG SMTP RCVD: 334 VXNlcm5hbWU6
DEBUG SMTP SENT: emhhbmdjaHNoLjAzQGVtLnRzaW5naHVhLmVkdS5jbg==
DEBUG SMTP RCVD: 334 UGFzc3dvcmQ6
DEBUG SMTP SENT: MzMzMzMz
DEBUG SMTP RCVD: 235 ok, go ahead (#2.0.0)
DEBUG SMTP SENT: QUIT
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG: SMTPTransport trying to connect to host "xxxxxxxx", port 25
DEBUG SMTP RCVD: 220 Welcom to my xxxxxxxx smtp server ESMTP
DEBUG: SMTPTransport connected to host "xxxxxxxxxxx", port: 25
DEBUG SMTP SENT: EHLO xxxxxxxx
DEBUG SMTP RCVD: 250-Welcom to my xxxxxxxx smtp server
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-PIPELINING
250 8BITMIME
DEBUG SMTP Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP Found extension "AUTH=LOGIN", arg "PLAIN"
DEBUG SMTP Found extension "PIPELINING", arg ""
DEBUG SMTP Found extension "8BITMIME", arg ""
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP SENT: AUTH LOGIN
DEBUG SMTP RCVD: 334 VXNlcm5hbWU6
DEBUG SMTP SENT: emhhbmdjaHNoLjAzQGVtLnRzaW5naHVhLmVkdS5jbg==
DEBUG SMTP RCVD: 334 UGFzc3dvcmQ6
DEBUG SMTP SENT: MzMzMzMz
DEBUG SMTP RCVD: 235 ok, go ahead (#2.0.0)
DEBUG SMTP SENT: NOOP
DEBUG SMTP RCVD: 250 ok
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.AuthenticationFailedException
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:103)
at EmailSender.Sender.send(SenderMain.java:194)
at EmailSender.SenderMain.distribute(SenderMain.java:44)
at EmailSender.SenderMain.main(SenderMain.java:52)
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true

