Setting up email notification.