mailgun-mail

command
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Mailgun-mail, a drop-in replacement for the sending half of the standard Unix mail program, sends mail using Mailgun.

Usage:

mailgun-mail [-Edntv] [-a file] [-b bcc] [-c cc] [-r from] [-s subject] to...

Mailgun-mail sends mail to the given "to" addresses.

The options are a subset of the standard mail program's options:

-E  discard (do not send) empty messages
-d  print debugging information
-n  do not send any mail
-t  use From:, Subject:, To:, Cc:, Bcc: lines from input
-v  verbose mode

-a file
    attach the file to the message (can repeat)
-b addr
    bcc the address (can repeat)
-c addr
    cc the address (can repeat)
-r from
    set the from address
-s subject
    set mail subject

Configuration

Mailgun-mail expects to find an mailgun API domain and authorization key of the form "<domain> api:key-<hexstring>" in the environment variable $MAILGUNKEY, or else in the file $HOME/.mailgun.key, or else in the file /etc/mailgun.key.

Diagnostics

If the file /var/log/mailgun.log can be opened for writing, mailgun logs its actions, successes, and failures there.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL