How can I send an email message from Apps Script using the Gmail API that picks up a file from the Drive and includes in the message as an attachment.
I've looked in the official documentation but could not get this to work.
How can I send an email message from Apps Script using the Gmail API that picks up a file from the Drive and includes in the message as an attachment.
I've looked in the official documentation but could not get this to work.
Copyright © 2021 Jogjafile Inc.
You can accomplish this without using the GMail API, using the GmailApp Service instead. In fact, your use case is the example provided in the documentation for GmailApp.sendEmail().