Simple REST API node server for sending emails. Designed to be used in website contact forms. Built top of mailgun API.
npm install
npm start
# or with nodemon
npm run dev
POST /api/email
{
"from": "jack.tester@email.com", // mandatory
"name": "Jack Tester", // mandatory
"phoneNumber": "+358502349842", //optional
"message": "Email message body" // mandatory
}
204
(no body for success)
422
(validation error)
429
(rate limit exceeded)
500
(internal server error)