This is a simple email service that sends emails to users. It is built using Spring Boot and Java.
And also is an Uber challenge, you can see the challenge here.
Do not use for production purposes.
First, you need to obtain the API keys from the providers. See the application.properties, locate these keys, and set them in the file.
To run the project, you must have Java and Maven installed. Then, you can run the following command:
mvn spring-boot:run
With all setup done, you can now email to a user. To do this, you need to make a POST request to the /email/send
endpoint with the following payload:
{
"from": "senderRegistred@email.com",
"to": "emailTo@email.com",
"subject": "Hello, I am the subject",
"body": "Yes, all the body of the email"
}
Attention that some providers like amazon SES, you need to verify the sender email before send the email.