Skip to content

📩 Express server to send emails with Nodemailer

Notifications You must be signed in to change notification settings

kukiron/email-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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

About

📩 Express server to send emails with Nodemailer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published