email notification based on rule engine