diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-06 11:15:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 11:15:39 +0800 |
| commit | 6f82b1f53af60fccb35aa7a13c13e6d9ebe7796f (patch) | |
| tree | 642f2d3516b405ab97f956875f7aae6ce10946e5 /tools | |
| parent | d8eeb55578543b7e35c8ea7c38a46b0786e71052 (diff) | |
| download | llm-functions-docker-6f82b1f53af60fccb35aa7a13c13e6d9ebe7796f.tar.gz | |
feat: add send_mail.sh (#21)
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/send_mail.sh | 15 |
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" "$@")" + |
