diff options
| author | 2025-10-24 16:16:18 +0200 | |
|---|---|---|
| committer | 2025-10-26 19:19:13 +0100 | |
| commit | 20987221d978c657fe453eefd1d8c284e93b6372 (patch) | |
| tree | 9f53dafb9bb2939a7626ee545396217a488c6cb8 | |
| parent | ea4b5553c21bc99e8645133b6ac8fec90d53b190 (diff) | |
mod/notification-email: ignore errors (for now...)HEADrouteros-7.21beta2-4nextmain
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...
| -rw-r--r-- | mod/notification-email.rsc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/notification-email.rsc b/mod/notification-email.rsc index ad9762a..7c3a6ff 100644 --- a/mod/notification-email.rsc +++ b/mod/notification-email.rsc @@ -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; |