I receive the below error message in my LogCat when trying to send an email from my Gmail account using JavaMail API.
11-09 11:04:14.385: W/System.err(18443)
First, fix these common mistakes.
Turn on Session debugging to see if the protocol trace gives any more clues about what's wrong.
You may need to enable access for less secure apps.
go to your mail and then click on my account and then select Sign-in & security option
and then on bottom show Allow less secure apps: OFF is off so ON this option and now you can send background mail.
thank you