mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-09 19:39:29 +00:00
mod/notification-email: ignore errors (for now...)
Errors are returned since RouterOS 7.21beta2. We keep the current logic for now, as we want to support older RouterOS versions. This is something to be reworked later...
This commit is contained in:
parent
ea4b5553c2
commit
20987221d9
1 changed files with 5 additions and 2 deletions
|
|
@ -101,8 +101,11 @@
|
|||
$LogPrint warning $0 ("File '" . $File . "' does not exist, can not attach.");
|
||||
}
|
||||
}
|
||||
/tool/e-mail/send from=[ $EMailGenerateFrom ] to=($Message->"to") cc=($Message->"cc") \
|
||||
subject=($Message->"subject") body=($Message->"body") file=$Attach;
|
||||
:do {
|
||||
/tool/e-mail/send from=[ $EMailGenerateFrom ] to=($Message->"to") \
|
||||
cc=($Message->"cc") subject=($Message->"subject") \
|
||||
body=($Message->"body") file=$Attach;
|
||||
} on-error={ }
|
||||
:local Wait true;
|
||||
:do {
|
||||
:delay 1s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue