When Mikrotik Closes, Send Log/sms/mail

Scenario:

There are 2 WAN ports belonging to the Mikrotik and the IP information will be sent to the specified IP address by SMS /mail-in both ports.
If the device is rebooted in any way, the information of this situation will be sent as SMS when it reaches the time specified in the uptime variable.

Mikrotik reboot alert / UPTIME CHECK SCRIPT, with the prevention of sending FALSE ALARM with optional Email and SMS Alert.
You need to use Gmail for sending mail, and an SMS Platform for Sending Sms.

I hope it was a useful article.