You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did a quick google search using "google apps script delete email once sent" & came up with some of these links, which will delete way more than you may want, but you can tweak the parameters most likely. You may want to have a way to easily identify the sent emails, with a very specific/custom subject name or adding some unique tag to the body. Then, perform a search for emails that match that criteria & flag it. Some of the possible helpful pages:
(if you are seeing a trend, stack overflow may be a better place to get help for specific challenges in google scripts too)
Note: it is possible that MailApp doesn't immediately send an email right then and there. As a result, if you clean up emails in Gmail via Google Script, there may not be anything to clean up just yet. You can fix that by moving the clean up to its own script & have that run at given intervals on your inbox.
Hi, after successfully sending the email. Is it possible to delete the sent email or move it to trash once sent?
The text was updated successfully, but these errors were encountered: