echomail
v1.0.2
Published
echomail is a command line tool to send mails using Mandrill API. You will need a Mandrill account, create one here: https://mandrill.com
Downloads
30
Maintainers
Readme
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 [email protected] with the text "Hi!":
echo Hi! | echomail -k <Mandrill API Key> -t [email protected]
Or in a cronjob:
*/1 * * * * python /home/jinx/cpu-monitor.py | /usr/local/bin/echomail -k <Mandrill API Key> -t [email protected]
The command will return 0 on success and 1 on fail.
Flags
Flag | Short flag | Description | Required --- | --- | --- | --- --key | -k | Mandrill key | Yes --to | -t | Recipient mail address | Yes --to-name | N/A | Recipient name | No --from | N/A | Sender mail address | No --from-name | N/A | Sender name | No --subject | N/A | Mail subject | No --subject-prefix | N/A | Mail subject prefix | No --subject-max-length | N/A | Mail subject max length | No --allow-empty-message | N/A | Allow empty message body | No --help | -h | Show help | No --version | -v | Show version | No
Examples
echo Hi! | echomail -k XXXXXXXXXX -t [email protected] --subject MySubject
echo Hi! | echomail -k XXXXXXXXXX -t [email protected] --subject MySubject --from-name Source#1
echo Hi! | echomail -k XXXXXXXXXX -t [email protected] --subject-prefix MyTag
TODO
- Flag: --debug
- Comments in code