I have tried multiple resources to look for a way that emails my google sheet as an attachment using appscript. Upon using the code below I can only send it out as a pdf.
function excelemail()
{ var file = DriveApp.getFileById('1Mytzfrl159TLMjMupziSKOrRJadsPKSLxYtaAvZTWt0');
GmailApp.sendEmail('shrikant.ravi@droom.in', 'Attachment example', 'Please see the attached file.' , {attachments: [file], name: 'Automatic Emailer Script' }) }