fixes #9795 - check if mail is enabled before sending a notification
(cherry picked from commit 7ca39b3442be76da89c2c52d8da0c2d6afb74af1)
fixes #9795 - check if mail is enabled before sending a notification
(cherry picked from commit 7ca39b3442be76da89c2c52d8da0c2d6afb74af1)