This demo is created to test the Java Mail Clients, to configure MailService is jHipster application as suggested in jHipster Tip - Configuring Email with - Gmail
Note (for Gmail)
You must allow your Gmail account to access less secure apps.
Login to Gmail and visit Here to Turn On Access for less secure apps.
$ git clone https://github.com/RawSanj/java-mail-clients.git
Updated Version (added support for Attachments):
ConfigConsts.javafile with to and from Email address and password.
- Select the SMTP Server (GMAIL, YAHOO, OUTLOOK or ZOHO) and update the File path where the attachments are located.
- Run the
SendEmailWithAttachmentsclass as Java Application.
- Change the
passwordin the respective E-Mail client app and run as Java Application.
Refer below links for API and SMTP settings: