Email scheduler for Gmail using Google Apps Script
This is an email scheduler for Gmail written using Google Apps Script. It is hosted as a web app on Google Chrome webstore. The script looks for scheduling instruction in you email’s subject line, uses drafts to hold the email till it is time to send and sends the email without your intervention using apps script triggers.
You can read more about how it works here
Google Account with Access to Gmail, Google Drive and Apps Script
The script sets a trigger which, whenever it runs will check for all the drafts that has WISEBOT send instructions. It will then process all those drafts where it can decode the time and send them after the time has reached or according to send instructions.
If you have installed this from the chrome store, you should see a folder called WISEBOT in your google drive which will have day wise reports of your processed mails.
Manually
process_jobs
function in a schedule that suits you (30 mins recommended)From Chrome Store (for chrome browser)
chrome://apps
and click on the app icon Install
link in the header Uninstall
link to uninstall For other browsers
Install
link in the header Uninstall
link to uninstall
For example, if you want to send a mail with subject _How are you_ after 9 AM on 20th of September, the subject line should be...
```WISEBOT---2017-09-20T09:00---How are you
For example, let’s say you want to send a follow up to the previous message 2 days later, then the instructions string should look like
{
"send_after": "<javascript_date_string>",
"send_condition": "IF_NO_REPLY",
"subjects_to_check": [
{
"subject": "<previous_email_subject_line>",
"sent_after": "<when_was_this_mail_sent>"
}
]
}
2.2 Encode this string to base64 (You can use browser console to do this)
{
"send_after": "2017-09-22T09:00",
"send_condition": "IF_NO_REPLY",
"subjects_to_check": [
{
"subject": "How are you",
"sent_after": "2017-09-20T09:00"
}
]
}
For the above example, that is…
WISEBOT---<base_64_encoded_send_instructions>---<Actual subject line>
WISEBOT---eyJzZW5kX2FmdGVyIjogIjIwMTctMDktMjJUMDk6MDAiLCJzZW5kX2NvbmRpdGlvbiI6ICJJRl9OT19SRVBMWSIsInN1YmplY3RzX3RvX2NoZWNrIjogW3sic3ViamVjdCI6ICJIb3cgYXJlIHlvdSIsInNlbnRfYWZ0ZXIiOiAiMjAxNy0wOS0yMFQwOTowMCJ9XX0=---Just Following up