Email notification when specific code is used

There is - if you setup one of the community email integrations for Hubitat. Here are a couple: