Using the UrlFetchApp.fetch() function in this case. The other way is to store all the files in an array (messagesArray) and Fetch a Url of your server to send the array via POST. eml blob file was correctly created i send it to myself as an attachment using the sendEmail function. eml files depending on what is most convenient for you: I’m unable to tell the kind of access that you have from the file server side, this is why I have developed these two different ways to tackle your problem to download/send. With this string we can create a Blob object, which will be the. Download Kernel Gmail Backup tool to backup Gmail account emails to. You need to use the getMessages() function for each thread in order to obtain all the messages.Īfter you obtain the Message object, you can use getRawContent function to each message in order to obtain the string of data encoded. Google provides 15 GB of storage to all its users, which is used to store the entire. In your code you’re obtaining the first message of each thread, because the threadID is the same as the messageID of the first message in that thread, but if a thread has more messages (replies for example) it won’t find them. To send your emails you first have to obtain each of them and convert them to a blob object with content-type “message/rfc822” (which is the mime type for.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |