One of my conditions is not working to send email notifications.