https://salesforcecodex.com/salesforce/sending-report-as-attachment-in-salesforce/
Sending Report As Attachment in Salesforce