Fixed sending mails when notification was disabled