Donald Seo
Donald Seo

Reputation: 45

How do you reply to email thread with google Mailapp?

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

Answers (1)

Amit Agarwal
Amit Agarwal

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

Related Questions