This project aims to provide a simple mail sender via Rest calls using Node.JS. I built it to use with my website contact form and I`m going to improve it with more functionalities.
Fill the variables.env file with the following informations:
- AUTH_USER - Login user
- AUTH_PASSWORD - Login password
- TO_MAIL - Who will receive the e-mail
- SERVER_PORT - Which port the server will run (default = 3000)
- Clone the project
npm install
npm start
Make a POST call to http://your-server-ip:3000/ with the following json payload:
{
"name": "<contact_form:name_field>"
"from": "<contact_form:email_field>"
"message": "<contact_form:message_field>"
}