mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-18 16:49:08 +02: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 EmailGeneralTo;
|
||||||
:global EmailGeneralCc;
|
:global EmailGeneralCc;
|
||||||
|
|
||||||
|
:global LogPrintExit;
|
||||||
|
|
||||||
:if ([ :len $EmailGeneralTo ] = 0) do={
|
:if ([ :len $EmailGeneralTo ] = 0) do={
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
@ -575,7 +577,7 @@
|
||||||
subject=("[" . $Identity . "] " . $Subject) \
|
subject=("[" . $Identity . "] " . $Subject) \
|
||||||
body=($Message . $Signature) file=$Attach;
|
body=($Message . $Signature) file=$Attach;
|
||||||
} on-error={
|
} on-error={
|
||||||
:log warning "Failed sending notification mail!";
|
$LogPrintExit warning ("Failed sending notification mail!") false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue