Skip to content

cortexag/mailgun-send-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailgun-send-mail

A script that uses Mailgun to deliver emails.

Install the script

npm install -g https://github.com/CortexAG/mailgun-send-mail.git

Prerequisites

Before running the script make sure you have created a config.json file with the following keys:

{
    "domain": "<MAILGUN-DOMAIN>",
    "api_key": "<MAILGUN-APIKEY>"
}

Run the script

Example:

mailgun-send-mail -p register -d '{"first_name": "first_name", "token": "token"}' -c ~/code/cortex-ag/mailgun-send-mail/config.json -s "Hello there" -t costin.bleotu@cortex-ag.com

Script arguments

Usage:  mailgun-send-mail [options]

A script that uses Mailgun to deliver emails.

Options:
  -c, --config <file>    Config file to use (absolute path)
  -p, --template <name>  Template to use from your Mailgun account
  -t, --to <email>       To email
  -s, --subject <name>   Mail subject
  -d, --data <dict>      Variables dict that will be sent to Mailgun template
  -V, --version          output the version number
  -h, --help             output usage information

About

A script that uses Mailgun to deliver emails.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors