Fixed bug in sendEmailNotification()