1
votes

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?

1

1 Answers

4
votes

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!");