A new script from forum; improve existing scripts

This commit is contained in:
Pothi Kalimuthu 2022-11-08 21:18:05 +05:30
parent 664f80d7c7
commit b1a9e9ea46
No known key found for this signature in database
GPG key ID: 08202A469C2D0E06
4 changed files with 48 additions and 4 deletions

View file

@ -5,9 +5,10 @@
# Source: https://forum.mikrotik.com/viewtopic.php?f=9&t=61068#p312202
:global adminPh
:if ([:typeof $adminEmail] = "nothing" || $adminEmail = "") do={ :log error "adminEmail is not defined or nil."; :error "Error: Check the log"; }
:if ([:typeof $adminPh] = "nothing" || $adminPh = "") do={
:log error "adminPh is not defined or nil."; :error "Error: Check the log"; }
:local smsForwardPh $adminPh
:if ([:typeof $adminPh] = "nothing" || $adminPh = "") do={ :log error "adminPh is not defined or nil."; :error "Error: Check the log"; }
:local smsPhone
:local smsMessage