Added function to send reports by mail