Adding the notification email functionality.