Wednesday, July 1, 2020

Send Mail from SMTP Java Client using GMAIL

MAIL SETTINGS
hostname=smtp.gmail.com
username=emailid@gmail.com
password=pass@word
smtp.port=587
#smtp.port=465
smtp.auth=true
smtp.starttls.enable=true

2 Additional Settings to be done in Google Account Settings
  1. Allow less secure app access via link.
  2. Turn off via link.
    • Use your phone to sign in
    • 2-Step Verification