From dbac55889d36e41d60fba7758877c9c00f3790bc Mon Sep 17 00:00:00 2001 From: mr-vercetti <87.milewski@gmail.com> Date: Wed, 16 Apr 2025 15:10:39 +0200 Subject: [PATCH] Update sg-send-email script with default values to set --- sg-send-email.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sg-send-email.sh b/sg-send-email.sh index d0c7506..675f0a7 100755 --- a/sg-send-email.sh +++ b/sg-send-email.sh @@ -1,6 +1,12 @@ #!/usr/bin/bash # Simple script to send email notifications via the Sendgrid API. +# Default values +email_from="" +email_name="" +email_to="" +subject="" +message="" sg_key_file="./sg_key" print_usage () { @@ -8,6 +14,8 @@ print_usage () { echo "EMAIL_FROM - sender's email address" echo "EMAIL_NAME - sender's name" echo "EMAIL_TO - recipient's email adress" + echo "SUBJECT - email subject" + echo "MESSAGE - email message" echo "SG_KEY_FILE - a path to the file with Sendgrid API key (default: ./sg_key)" }