1.0.2 • Published 9 years ago

echomail v1.0.2

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

echomail

echomail is a command line tool to send mails using Mandrill API. You will need a Mandrill account, create one here: https://mandrill.com

How to use

The following line will send a mail to mail@example.org with the text "Hi!":

echo Hi! | echomail -k <Mandrill API Key> -t mail@example.org

Or in a cronjob:

*/1 * * * * python /home/jinx/cpu-monitor.py | /usr/local/bin/echomail -k <Mandrill API Key> -t mail@example.org

The command will return 0 on success and 1 on fail.

Flags

FlagShort flagDescriptionRequired
--key-kMandrill keyYes
--to-tRecipient mail addressYes
--to-nameN/ARecipient nameNo
--fromN/ASender mail addressNo
--from-nameN/ASender nameNo
--subjectN/AMail subjectNo
--subject-prefixN/AMail subject prefixNo
--subject-max-lengthN/AMail subject max lengthNo
--allow-empty-messageN/AAllow empty message bodyNo
--help-hShow helpNo
--version-vShow versionNo

Examples

echo Hi! | echomail -k XXXXXXXXXX -t mail@example.org --subject MySubject
echo Hi! | echomail -k XXXXXXXXXX -t mail@example.org --subject MySubject --from-name Source#1
echo Hi! | echomail -k XXXXXXXXXX -t mail@example.org --subject-prefix MyTag

TODO

  • Flag: --debug
  • Comments in code
1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago