Skip to content

The project is a Node.js application that uses the Mailgun.js library to send email templates to a recipient's email address. The purpose of the application is to test how the email template looks once it has been sent and received.

License

Notifications You must be signed in to change notification settings

m-ahmedk/mail-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Mail Tester

This project is a simple Node.js application that sends an email to a recipient using the Mailgun API. The objective of this project is to test how an email template appears once it has been sent to the recipient's email address.

Installation

  1. Clone this repository.
  2. Run npm install to install the project's dependencies.
  3. Create a .env file in the root of the project and add your Mailgun API key and domain:
MAILGUN_API_KEY=<your mailgun api key>
MAILGUN_DOMAIN=<domain name>
MAILGUN_FROM_EMAIL=<from name><from email>
PORT=<port to run the app.js on>
  1. Run npm run dev to start the development server using Nodemon.

Usage

  1. Open POSTMAN
  2. Add a request for url: http://localhost:PORT/api/v1/mailsender/sendemail
  3. Add email in the body as raw json
{
    "email": "m.ahmedk287@gmail.com"
}
  1. Check the recipient's email inbox for the test email.

License

This project is licensed under the License: MIT.

About

The project is a Node.js application that uses the Mailgun.js library to send email templates to a recipient's email address. The purpose of the application is to test how the email template looks once it has been sent and received.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published