DHCP ALERTS

Hi,all…
I have a Mikrotik RouterOS with a dhcp server, all clients get the ip via DHCP, but Sometimes another wrong DHCP SERVER .
How to get the values of “Unknown Servers” with scripts and auto send to Email?

paste this into router:

/system logging action
remove [find name=“emailalert”]
add email-to=YOUREMAIL@ADDRESS.TLD name=emailalert target=email
/system logging
remove [find topics=“dhcp,critical”]
add action=emailalert disabled=no prefix=“” topics=dhcp,critical
remove [find topics=“dhcp,error”]
add action=emailalert disabled=no prefix=“” topics=dhcp,error

and then make sure your router is setup for email.

Thanks ,I try it again.

It worked now thanks