Added emailing functionality.