mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $SendEMail: use $LogPrintExit
This commit is contained in:
parent
6f354c8bb0
commit
af77645174
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue