feat: add send_mail.sh (#21)

This commit is contained in:
sigoden
2024-06-06 11:15:39 +08:00
committed by GitHub
parent d8eeb55578
commit 6f82b1f53a
+15
View File
@@ -0,0 +1,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" "$@")"