global-functions: $SendEMail: use $LogPrintExit

This commit is contained in:
Christian Hesse 2020-04-03 16:51:59 +02:00
parent 6f354c8bb0
commit af77645174

View file

@ -562,6 +562,8 @@
:global EmailGeneralTo;
:global EmailGeneralCc;
:global LogPrintExit;
:if ([ :len $EmailGeneralTo ] = 0) do={
:return false;
}
@ -575,7 +577,7 @@
subject=("[" . $Identity . "] " . $Subject) \
body=($Message . $Signature) file=$Attach;
} on-error={
:log warning "Failed sending notification mail!";
$LogPrintExit warning ("Failed sending notification mail!") false;
}
}