Fixed up notify email logic.