Is javamail a less secure application?

I was just working on an email that reads emails from Gmail and does some further processing. Initially using the code in SO (link is given below), I was getting an exception that says "my access has been blocked and I need to login through a web browser."

At the same time, I saw an email in my inbox (which I am trying to connect to) that says " Google Account: Login Attempt Blocked " and I need to disable modern security from the following link: https: / /www.google.com/settings/security/lesssecureapps ".

I tried to disconnect and I was connected successfully.

Does this mean which Javamail

is a less secure application? Or are there ways that I can connect without disabling the option?

Thanks in advance. Garry

[The code I used:]

+3


source to share


1 answer


It's very difficult to say because Google doesn't say exactly what "modern security standards" need to be implemented for an application to be "more secure", but I suspect they are linking to this blog post where they talk about OAuth2 . JavaMail can use the OAuth2 validation mechanism , which I believe makes JavaMail more secure. application



+4


source







All Articles