@Dutchprinting you could use MQTT to send a message from the duet when something happens (using M118) otherwise its a case of polling the duet for data and looking for the change.
NodeRed has a node written for RRF that would be an easy way to get the email functionality