Auto check for updates

Hello,

Is there a script to check if new updates are available, and if then send an email?

I tried myselft, but I can’t get it to work. Can you help me?

/system package update
check-for-updates
:delay 1s;
:if ( [get current-version] != [get latest-version]) do={ /tool e-mail send to="someone@test.com" subject="test" body="test"}

Mikrotik offers to send you an email directly when new version is released. See their webpage. Unfortunately I have not received info about the 6.28 so I am not sure if it is still working.