From 58cea8f8c1324595edc739b437b6d1c4c5ce33a8 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 22 Aug 2017 20:56:27 +0100 Subject: [PATCH] to LinuxGSM Admin --- lgsm/functions/alert_mailgun.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/alert_mailgun.sh b/lgsm/functions/alert_mailgun.sh index ddea1e7b3..b1b752fcf 100644 --- a/lgsm/functions/alert_mailgun.sh +++ b/lgsm/functions/alert_mailgun.sh @@ -10,7 +10,7 @@ local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" fn_print_dots "Sending Email (Mailgun) alert" sleep 0.5 -mailgunsend=$(curl -s --user "api:${mailguntoken}" -F from="LinuxGSM <${mailgunemailfrom}>" -F to="${servicename} 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) +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"