aboutsummaryrefslogtreecommitdiffstats
path: root/tools/send_mail.sh
blob: 6ce3ad0b438dc6fc1de7d92d0d86e0e5310bb669 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -e

# @describe Send a email.
# @meta require-tools mutt
# @option --recipient The recipient of the email.
# @option --subject The subject of the email.
# @option --body The body of the email.

main() {
    mutt -s "$argc_subject" "$argc_recipient" <<<"$argc_body"
}

eval "$(argc --argc-eval "$0" "$@")"