From af776451740af8996851086f102690d7b66553ee Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 3 Apr 2020 16:51:59 +0200 Subject: global-functions: $SendEMail: use $LogPrintExit --- global-functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'global-functions') diff --git a/global-functions b/global-functions index 0b1ba77..85d9d59 100644 --- a/global-functions +++ b/global-functions @@ -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; } } -- cgit v1.2.3-54-g00ecf