+ Reply to Thread
Results 1 to 3 of 3

G-Sheets Script: Auto-Send Email 24-hrs Before Different Deadlines

  1. #1
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    G-Sheets Script: Auto-Send Email 24-hrs Before Different Deadlines

    Hi guys, so I know there are many different guides how to send auto-email reminders from Sheets with add-ons but none of those I can apply here. Some help with a script, please?

    1. I basically have days set to MON, TUE etc in column A

    2. email addresses are in column W

    3. users should receive an email reminder 24-hrs before preset deadline.

    4. the 24-hr trigger set as:

    - if column A is MON, email the reminder at 3pm on SATURDAY
    - if column A is TUE, email the reminder at 3pm on SUNDAY
    - if column A is WED, email the reminder at 3pm on MONDAY

    and so on...

    IMPORTANT: I travel, so Ideally, and if possible, the trigger should fire off my local time instead of some fixed timezone. can Sheets pick up time from a current location on my laptop? and if not, it's ok to have it triggered on a fixed timezone but I'd just need to know how to change it whenever I move to another country.

    5. Can the email contents be taken from a cell in column X instead of having it in a script itself? simply because if the text needs to change for certain days, it could be done in a cell itself instead of modifying the script.

    6. Can column Y generate Email Sent Report, just to let me know that the email went out successfully?

    Attaching the file itself below and thanking you very much in advance.

    https://docs.google.com/spreadsheets...it?usp=sharing
    Last edited by vill; 07-06-2021 at 01:28 AM.

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: G-Sheets Script: Auto-Send Email 24-hrs Before Different Deadlines

    Answering this:
    "I travel, so Ideally, and if possible, the trigger should fire off my local time instead of some fixed timezone. can Sheets pick up time from a current location on my laptop? and if not, it's ok to have it triggered on a fixed timezone but I'd just need to know how to change it whenever I move to another country."

    With the spreadsheet already open in google sheets..
    1. click FILE > Spreadsheet Settings > Time Zone
    2. change the timezone
    3. click save settings

    there is one possible issue with repeatedly changing the sending to be suited to your local timezones, you might duplicate email when going back in time, and miss sending email when going forward in time... so like any business system once its setup to be automated, you dont keep changing the timezone of the automated components.. but its up to you.

    EXTRA TIP: if the date format is always converting wrong, for example you are from Australia, and you type in 01/10/2021 (which is 01/October), but your spreadsheet thinks it is 10/January, then while in Spreadsheet Settings, change the locale from USA to Australia.
    Last edited by janmorris; 07-24-2021 at 10:49 AM.

  3. #3
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: G-Sheets Script: Auto-Send Email 24-hrs Before Different Deadlines

    i have created a Send Email Automatically Google Sheets spreadsheet with accompanying App Script, and complete with instructions, see the attached txt file.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 10-31-2017, 12:56 PM
  2. Excel worksheet to send email reminders to people based on deadlines.
    By khadiza0616 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2017, 03:23 AM
  3. [SOLVED] Google sheets, auto email by script
    By Ditch1983 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 05-16-2017, 08:10 AM
  4. [SOLVED] Script to send email after extracting data
    By Metrazal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-04-2015, 09:05 PM
  5. Send New Email Script in VB
    By edneal2 in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 07-01-2013, 12:43 AM
  6. Replies: 26
    Last Post: 02-18-2013, 05:46 PM
  7. Script or Macro to send an email
    By pradeepkodali in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-01-2011, 07:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1