Added ability to send reports through email.