Move email-sending code into __sendNotificationEmail(), refactor