0.1.7 • Published 8 years ago

mailgun-cmd v0.1.7

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

mailgun-cmd

A simple tool for sending messages through mailgun.

This tool uses the API avenue rather than SMTP.

Type mailgun-cmd --help to learn more.

Example

Sending a message on the command line:

mailgun-cmd \
    -k 1234abcd \
    -d mg.yourdomain.tld \
    -f you@yourdomain.tld \
    -t them@mg.yourdomain.tld \
    -s 'A subject line' \
    -p './path/to/plaintext.txt' \
    -h './path/to/html.html'

Sending a message in code:

var mgcmd = require('mailgun-cmd');
var message = new mgcmd.Message();
message
    .apikey('1234abcd')
    .domain('mg.yourdomain.tld')
    .from('you@yourdomain.tld')
    .to('them@mg.yourdomain.tld')
    .subject('A subject line')
    .text('A plain text e-mail body')
    .html('An html e-mail body');
message.send();
0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago