Hi Ravi,
You can define health rule of type "errors" and associate the health rule with policy with action type email that should do, refer docs for steps:
https://docs.appdynamics.com/display/PRO41/Health+Rules#HealthRules-HeathRuleTypes
https://docs.appdynamics.com/display/PRO41/Policies
https://docs.appdynamics.com/display/PRO41/Alert+and+Respond