VACATION RESPONDER

26 views
Skip to first unread message

Projeto Colorir

unread,
Feb 9, 2023, 9:41:00 PM2/9/23
to Google Apps Script Community
Hi, i need some help..

What is the script to configure an autoresponder in Gmail so that it is sent only once within the same thread, regardless of the sender's response time?

Brett Grear

unread,
Feb 10, 2023, 2:12:11 AM2/10/23
to Google Apps Script Community

There's no way to configure called vacation responder in this way. You would have to write a custom function that handles the logic itself and fires in a regular time trigger.  AFAIK

Projeto Colorir

unread,
Feb 13, 2023, 2:47:31 PM2/13/23
to google-apps-sc...@googlegroups.com
thanks !

how to set up this logic to fire only after 15 days, for example?

Em sex., 10 de fev. de 2023 às 04:12, Brett Grear
<bgrea...@stvps.co.uk> escreveu:
> --
> You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/qk3Bj-pygmI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/9893d856-f3c4-4487-86da-1a1b9e9e3c75n%40googlegroups.com.

Brett Grear

unread,
Feb 13, 2023, 3:45:53 PM2/13/23
to Google Apps Script Community
The following code will setup a trigger to run every 15 days.  You would need to write the function that handles the response emails and detecting which threads to reply to:
function setupTrigger() {
const trigger = ScriptApp.newTrigger('myFunction')
.timeBased()
.everyDays(15)
.atHour(12)
.nearMinute(0)
.create();
}
Reply all
Reply to author
Forward
0 new messages