Skip to content
generated from pforret/bashew

Use Postmark API to send emails (CLI/bash) -- UNDER DEVELOPMENT

License

Notifications You must be signed in to change notification settings

pforret/postmarkit

Repository files navigation

bash_unit CI Shellcheck CI GH Language GH stars GH tag GH License basher install

postmark

Use Postmark API on the command line pforret/postmark

Usage

Program: postmark.sh 1.0.0 by peter@forret.com
Updated: Jan  3 17:14:14 2021
Description: Use Postmark API on the command line
Usage: postmark.sh [-f] [-h] [-q] [-v] [-B <bcc>] [-C <cc>] [-F <from>] [-G <tag>] [-K <token>] [-M <stream>] [-S <subject>] [-T <to>] [-l <log_dir>] [-t <tmp_dir>] <action> <input?>
Flags, options and parameters:
-f|--force       : [flag] do not ask for confirmation (always yes) [default: off]
-h|--help        : [flag] show usage [default: off]
-q|--quiet       : [flag] no output [default: off]
-v|--verbose     : [flag] output more [default: off]
-B|--bcc <?>     : [option] bcc: address
-C|--cc <?>      : [option] cc: address
-F|--from <?>    : [option] from: address  [default: <author email>]
-G|--tag <?>     : [option] email tag  [default: test]
-K|--token <?>   : [option] Postmark API server token  [default: POSTMARK_API_TEST]
-M|--stream <?>  : [option] Postmark stream  [default: outbound]
-S|--subject <?> : [option] email subject  [default: Mail from <user>@<host> - <date>]
-T|--to <?>      : [option] to: address  [default: example@example.com]
-l|--log_dir <?> : [option] folder for log files   [default: ~/log/postmark]
-t|--tmp_dir <?> : [option] folder for temp files  [default: .tmp]
<action>         : [parameter] action to perform: check/html/text/md
<input>          : [parameter] input text or html (optional)

Installation

with basher

basher install pforret/postmark

or with git

git clone https://github.com/pforret/postmark.git
cd postmark

Acknowledgements

© 2021 Peter Forret