Is there a way of sending the emails on a specific date and time? I'd appreciate it if anyone has figured out a way of doing this and can help me.
Greetings @rajatkhare619!
as far as I am aware, the Gmail API does not have a "delay sending by {X} minutes" function ...
see: https://developers.google.com/gmail/api/guides/sending
There are 3rd party services you can use to send an email at a specific time/date,
e.g: https://www.boomeranggmail.com/l/schedule-an-email.html
but we have never attempted to integrate them with a Google Form/Script which captures data
because it's never been a "use case" for us.
Could you give us a bit more detail on the _scenario_ where this would be _useful_?
Thanks.
Hi @nelsonic
Thank you for those references.
I'm trying to create a "Reminder" application where users can set the date and time and then the script will send them the reminder on the specified time.
I think Boomerang will not be applicable in this case. I don't want everyone to install the extension.
I want a way of doing this using code.
@mckennapsean _sweet_! thanks for sharing!
(_I have not used triggers with apps scripts so I defer to you!_) 🥇
@mckennapsean Thanks! I'll see if it works.
@rajatkhare619 any luck figuring it out? hope it does!
@mckennapsean No. I surmised that I would have to learn Google apps script in detail in order to write the custom script that I needed and I didn't have much time so I went with Elastic email in the end.
Thanks for the follow-up, and I hope it was able to do all you needed to do!
Most helpful comment
¯_(ツ)_/¯
https://developers.google.com/apps-script/guides/triggers/installable