How to send a mail in java to Gmail, when “Allow less secure apps: OFF”
I am able to send mail in java to gmail, when " Allow less secure apps: ON "(you can find code here ).But am getting an error when "Allow less secure apps: OFF". please give me proper steps to resolve this. Error: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtDY 534-5.7.14 01tH8y-udRciS_SO5d08uqHUrrFPAbG1_XdRaoO-x_gAICwxl_UIsENPSoTXVrNqFs5BcR 534-5.7.14 KXMaVoEIwR9uACjnduELTwJg0SxLrXL5CltztHepubHzUzgC6h-iszlhKrUuckV1-k6FWS 534-5.7.14 jpMrpomFM2k_UcOdDm7SyTde8MadhGyxmYDZ5KZAHcqkRGKjR6hU7oY8hUaTFocikPxquP 534-5.7.14 B2iqPFDd4NLZqv6qGfDNK0q_i17s> Please log in via