This is a basic app for sending mail using gmail oauth credentials, and mailchimp.
The following are the steps to deploy the app:
-
Create your google oauth authorization credentials using steps from this link Create authorization credentials
-
Ensure the port in your redirect_uri matches the
socket.port
value in yourapplication.properties
-
Download the credentials. Rename the file as
credentials.json
-
Save the file in your project folder in this part
src/main/resources/credentials.json
-
Start the app.
-
From postman, make a post to http://localhost:8081/mail/. Change the port to your server.port value.
-
Your post should contain the following fields
to, subject, body
Your server.port
value should be different from your socket.port
value. Check my application.properties
for giude.