For user who want to send mail by touch ECR via gmail.
Even the account and password is correct, when send mail, always throw "javax.mail.AuthenticationFailedException".
That is because of google prevent low security.
please login in gmail with your account by browser,
1. settings turn on "Enable IMAP"
2.browse :https://www.google.com/settings/security/lesssecureapps
you will see turn off or turn on. Click "Turn on"
your gmail will receive a mail to confirm "Turn on"