diff --git a/lgsm/functions/alert_mailgun.sh b/lgsm/functions/alert_mailgun.sh index b1b752fcf..42c081edd 100644 --- a/lgsm/functions/alert_mailgun.sh +++ b/lgsm/functions/alert_mailgun.sh @@ -8,15 +8,15 @@ local commandname="ALERT" local commandaction="Alert" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" -fn_print_dots "Sending Email (Mailgun) alert" +fn_print_dots "Sending Email alert: Mailgun: ${email}" sleep 0.5 mailgunsend=$(curl -s --user "api:${mailguntoken}" -F from="LinuxGSM <${mailgunemailfrom}>" -F to="LinuxGSM Admin <${mailgunemail}>" -F subject="${alertemoji} ${alertsubject} ${alertemoji}" --form-string html="

Message
${alertbody}

Game
${gamename}

Server name
${servername}

Hostname
${HOSTNAME}

Server IP
${ip}:${port}

More info
${alerturl}" https://api.mailgun.net/v3/${mailgundomain}/messages) if [ -z "${mailgunsend}" ]; then - fn_print_fail_nl "Sending Email (Mailgun) alert" - fn_script_log_fatal "Sending Email (Mailgun) alert" + fn_print_fail_nl "Sending Email alert: Mailgun: ${email}" + fn_script_log_fatal "Sending Email alert: Mailgun: ${email}" else - fn_print_ok_nl "Sending Email (Mailgun) alert" - fn_script_log_pass "Sent Email (Mailgun) alert" + fn_print_ok_nl "Sending Email alert: Mailgun: ${email}" + fn_script_log_pass "Sending Email alert: Mailgun: ${email}" fi