aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-06 11:15:39 +0800
committerGitHub <noreply@github.com>2024-06-06 11:15:39 +0800
commit6f82b1f53af60fccb35aa7a13c13e6d9ebe7796f (patch)
tree642f2d3516b405ab97f956875f7aae6ce10946e5
parentd8eeb55578543b7e35c8ea7c38a46b0786e71052 (diff)
downloadllm-functions-docker-6f82b1f53af60fccb35aa7a13c13e6d9ebe7796f.tar.gz
feat: add send_mail.sh (#21)
-rwxr-xr-xtools/send_mail.sh15
1 files changed, 15 insertions, 0 deletions
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" "$@")"
+