Implemented the email notification.