Skip to content

ThiaudioTT/UberEmailService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uber Email Service

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.

Running and setting up the project

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

Sending the email

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.

About

Uber Backend Challenge about email services.

Topics

Resources

Stars

Watchers

Forks

Languages