Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bfulop/mailgun-html

Send html mail for testing with Mailgun
https://github.com/bfulop/mailgun-html

Last synced: 11 days ago
JSON representation

Send html mail for testing with Mailgun

Awesome Lists containing this project

README

        

build:passed

# Send emails with mailgun

A simple repo to simplify sending test emails with a Mailgun account.

### Setup

The library needs two config files to run:

#### Mailgun credentials

This JSON file is stored globally in your home directory so that all new projects have access to it. Save this to

`~/.mailgun`

```json
{
"privateApi": "your private API key",
"publicApi": "your public API key",
"domainName": "your domain"
}
```

#### Config file

This file stores the path to you html emails and sender/recipient data.

`./mailgunrc.json`

```json
{
"to": ["[email protected]"],
"from": "[email protected]",
"paths": ["path to html file"]
}
```