Reputation: 45
I'm using google Mailapp Api to send out email automatically from spreadsheet.
I wrote a script to automatically sendout email with spreadsheet data. For now, my script sends out a new email.
Is there a way to send out (reply) email to existing email thread with google Mailapp api?
Upvotes: 2
Views: 2908
Reputation: 11258
You can use the reply() method of the GmailApp service to reply to any specific thread.
var thread = GmailApp.getThreadById(id);
thread.reply("Thank you!");
Upvotes: 6