diff options
| author | sigoden <sigoden@gmail.com> | 2024-11-14 21:54:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-14 21:54:44 +0800 |
| commit | 1b96d4ee4cadf05163d653373423a615723240aa (patch) | |
| tree | b528d9e7791a2ed1ca8ce36098eec7c160200613 /tools/send_mail.sh | |
| parent | afbd03f963b08419a3835c9473d757bf936c8b92 (diff) | |
| download | llm-functions-docker-1b96d4ee4cadf05163d653373423a615723240aa.tar.gz | |
feat: add `LLM_OUTPUT=/dev/stdout` to all tools/agents bashscripts (#123)
Diffstat (limited to 'tools/send_mail.sh')
| -rwxr-xr-x | tools/send_mail.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/send_mail.sh b/tools/send_mail.sh index a09ee98..bcf7e95 100755 --- a/tools/send_mail.sh +++ b/tools/send_mail.sh @@ -2,13 +2,15 @@ set -e # @describe Send a email. +# @option --recipient! The recipient of the email. +# @option --subject! The subject of the email. +# @option --body! The body of the email. + # @env EMAIL_SMTP_ADDR! The SMTP Address, e.g. smtps://smtp.gmail.com:465 # @env EMAIL_SMTP_USER! The SMTP User, e.g. alice@gmail.com # @env EMAIL_SMTP_PASS! The SMTP Password # @env EMAIL_SENDER_NAME The sender name -# @option --recipient! The recipient of the email. -# @option --subject! The subject of the email. -# @option --body! The body of the email. +# @env LLM_OUTPUT=/dev/stdout The output path main() { sender_name="${EMAIL_SENDER_NAME:-$(echo "$EMAIL_SMTP_USER" | awk -F'@' '{print $1}')}" |
