threshold function operational

set a target and when it's met and email will be sent to the address
provided