Trying to send email in Java using gmail always results in username and password not accepted.
- by Thaeos
When I call the send method (after setting studentAddress), I get this:
javax.mail.AuthenticationFailedException: 535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answer.py?answer=14257 y15sm906936wfd.10
I'm pretty sure the code is correct, and 100% positive that the username and password…