From 6f82b1f53af60fccb35aa7a13c13e6d9ebe7796f Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 6 Jun 2024 11:15:39 +0800 Subject: feat: add send_mail.sh (#21) --- tools/send_mail.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tools/send_mail.sh (limited to 'tools/send_mail.sh') diff --git a/tools/send_mail.sh b/tools/send_mail.sh new file mode 100755 index 0000000..6ce3ad0 --- /dev/null +++ b/tools/send_mail.sh @@ -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" "$@")" + -- cgit v1.2.3