My program sends SMTP emails via my own gmail account. Numerous users have no problems, but one user gets the error "java.lang.Runtime Exception: Empty writer returned: 530-5.5.1 Authentication Required" when an email is sent.
Any idea of how to overcome this problem? - without having to resort to trying the carrier to change their firewall! The issue is in Namibia - pretty difficult to discuss technical issues with them!
I had this same issue and did a google search and wound up here. In case anyone else has had this issue, what fixed it for me was entering the CORRECT password for the gmail account. I had a typo in my code on my test app and was using the gmail address for the address AND the password.
I had this same issue and did a google search and wound up here. In case anyone else has had this issue, what fixed it for me was entering the CORRECT password for the gmail account. I had a typo in my code on my test app and was using the gmail address for the address AND the password.
Ater getting this error, got a gmail indicating that if I want my app to have access to sent gmail to change my security settings at the link provided. I did so, and the gmail now works with my app.