mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: append system note in e-mail signature
This commit is contained in:
parent
12af69b443
commit
b1b53e3d0d
1 changed files with 6 additions and 1 deletions
|
@ -107,8 +107,13 @@
|
|||
|
||||
:if ([ :len $EmailGeneralTo ] > 0) do={
|
||||
:do {
|
||||
:local Signature [ / system note get note ];
|
||||
:if ([ :len $Signature ] > 0) do={
|
||||
:set Signature ("\n-- \n" . $Signature);
|
||||
}
|
||||
/ tool e-mail send to=$EmailGeneralTo cc=$EmailGeneralCc \
|
||||
subject=("[" . $Identity . "] " . $Subject) body=$Message file=$Attach;
|
||||
subject=("[" . $Identity . "] " . $Subject) \
|
||||
body=($Message . $Signature) file=$Attach;
|
||||
} on-error={
|
||||
:log warning "Failed sending notification mail!";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue