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.
Click to show internal directories.
Click to hide internal directories.