Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m-ahmedk/mail-sender

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.
https://github.com/m-ahmedk/mail-sender

expressjs mailgun-js nodejs

Last synced: 5 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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=
```

```
MAILGUN_DOMAIN=
```

```
MAILGUN_FROM_EMAIL=
```

```
PORT=
```

4. 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": "[email protected]"
}
```
4. Check the recipient's email inbox for the test email.

## License
This project is licensed under the [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/m-ahmedk/mail-sender/blob/main/LICENSE).