Send Email Using Gmail in Java

Send Email using Gmail in Java

Here is another code for sending email using Java.  My Previous code, it needs to have access to application-specific password(Sending Email Using Java). Here you just need to enter your email address and password.

Requirements:
1. you need mail.jar and activation.jar to be added to your project
2. ┬áSign in your gmail, go to Account–> Connected Apps and Sites –> Allow less secure apps: turn it ON

 

One thought on “Send Email Using Gmail in Java

Leave a Reply

Your email address will not be published. Required fields are marked *