Files
llm-functions/tools/send_mail.sh
2024-06-06 11:15:39 +08:00

16 lines
330 B
Bash
Executable File

#!/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" "$@")"