Need to make Javamail more secure for gmail authentication
问题 I have written a code for sending a simple mail from java(javamail/jaf). after I run the program I got an email from google that my account is being accessed by unsecured device/app. Then I had to change the settings of my gmail account to allow login for "less secure apps" option. Then I received my email from the program. I need to send email without changing the option allow "less secure apps" option in my account. Please help. My code is: import java.util.Properties; import javax.mail