If you want to be emailed when certain logs come through… you could do something like this: http://forum.mikrotik.com/t/is-it-possible-to-run-a-script-on-login/55422/1
If you want to be emailed when the router restarts, create a schedule that runs on startup:
