I am developing a add-on program in google app script which gets all the gmail sent mails with there subject, body, attachment(if any). I have did this for the Inbox mail using getInboxThreads() function. Is there a function which does same for sent mails?
The program that i am writing is for any gmail user or a group of users how wants to save their gmail emails on the google drive for monitoring or any other operations.
list
method (Documentation here), addingSENT
as thelabelIds
parameter. To use thgis from an Apps Script you will need to enable Google Advanced Services – AMolina