Use resend instead of sendgrid for emails

This commit is contained in:
mr-vercetti
2025-06-21 14:23:49 +02:00
parent dbac55889d
commit 713ab58769
2 changed files with 29 additions and 31 deletions

View File

@ -7,7 +7,7 @@ remote_path=""
email_from=""
email_name=""
email_to=""
send_email_script_path="/etc/sg-send-email.sh"
send_email_script_path=""
print_usage () {
echo "Usage: "$0" -l LOCAL_PATH -r REMOTE_PATH -f EMAIL_FROM -n EMAIL_NAME -t EMAIL_TO -s SEND_EMAIL_SCRIPT_PATH"
@ -16,7 +16,7 @@ print_usage () {
echo "EMAIL_FROM - sender's email address"
echo "EMAIL_NAME - sender's name"
echo "EMAIL_TO - recipient's email adress"
echo "SEND_EMAIL_SCRIPT_PATH - a path to the send email script (default: /etc/sg-send-email.sh)"
echo "SEND_EMAIL_SCRIPT_PATH - a path to the send email script (default: /etc/send-email.sh)"
}
while getopts "l:r:f:n:t:s:h" opt
@ -62,4 +62,3 @@ if [[ $exit_code -ne 0 ]]; then
fi
${send_email_script_path} -f ${email_from} -n ${email_name} -t ${email_to} -s "Backup sync to S3 status: ${status}" -m "${email_message}"