mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
parent
6d12a2d54c
commit
9347f74809
1 changed files with 2 additions and 2 deletions
|
@ -272,9 +272,9 @@ send_email() {
|
|||
${SED_CMD} -i 's/\x1b\[[0-9;]*m//g' $EMAIL_REPORT
|
||||
|
||||
if [ -n "$MG_FROM" ]; then
|
||||
cat $EMAIL_REPORT | mail -f "$MG_FROM" -s "Nginx Bad Bot Blocker Updated" $EMAIL
|
||||
cat $EMAIL_REPORT | $mail_path -f "$MG_FROM" -s "Nginx Bad Bot Blocker Updated" $EMAIL
|
||||
else
|
||||
cat $EMAIL_REPORT | mail -s "Nginx Bad Bot Blocker Updated" $EMAIL
|
||||
cat $EMAIL_REPORT | $mail_path -s "Nginx Bad Bot Blocker Updated" $EMAIL
|
||||
fi
|
||||
else
|
||||
print_message "${BOLDYELLOW}WARN${RESET}: missing mail command => ${BOLDWHITE}disabling emails${RESET}.\n\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue