Skip to content

hjjacobs/specialdays-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Send a mail with a list of all special dates (birthdays and anniversaries) of your contacts using Google Apps Script

This script uses Google Apps Script to access one's Google Contacts and calculate the age on a person's birthday & anniversaries and send a mail with for

Using Google Contacts and the Google Apps Script environment mail me a list of all special dates of contacts (birthdays and anniversaries).

  • Send an email with a list of birthdays of people in my Google contacts for the remainder of the current year. Starting in the month the script runs.
  • Send an email with a list of anniversaries of people in my Google contacts for the remainder of the current year. Starting in the month the script runs.

Steps to setup everything

  1. Head to https://script.google.com/home/my and create a new project. Rename the existing file Code.gs to your liking and paste the code from sendSpecialDaysList.gs.
  2. Paste your mail address in line 8
  3. Customize the mail text in lines 9-17
  4. Customize the mail text for each birthday in line 218
  5. Customize the mail text for each anniversary in line 270
  6. Enable the People API
    • Before running this script, you must enable the People API:
    • In your Google Apps Script editor, click on "Services" (the + icon)
    • Find "People API" and add it
    • Set the identifier to People and version to v1
  7. Hit run and see the mails in your inbox
  8. Create a trigger to run this every month for a monthly reminder

Remove line 37 and 38 when you do not want a mail for the anniversaries (and/or remover the code completely).

Notes

The latest version of this script was updated with the help of Claude AI.


Inspired by Calculate the age of a person and write it to the event's description in your birthday calendar using Google Apps Script.

About

Google Apps script for a monthly reminder of birthdays and anniversaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published