I found one script online, which does quite simple work - sends e-mail to the specified address after the trigger is hit.
In the example below script should scan the