Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.11 KB

README.md

File metadata and controls

37 lines (23 loc) · 1.11 KB

email-server

Express server for sending emails using Nodemailer.

Includes validation for the contact-us form submitted in the front-end. A phone input field is assumed to be hidden in the form & validation includes detecting (as spam) the presence of phone number in the request.

Environemental Variables

Setup OAuth2 credentials in Google Developer Console for your project. Add the necessary environmental variables to the .env file.

A sample - .env.sample - is included in the repo.

Getting Started

Clone the repo & run the following commands to start the app server -

git clone [email protected]:kukiron/email-server.git
cd email-server
npm i && npm run dev

This will start the server on localhost:3139

Endpoints

GET /api/contact-us: Route to test the contact us form submission.

POST /api/send-message: Route to send email message.

Implementation

Name Screenshot
Contact Us Form Sample email
Form Submission Email Sample email