Gmail Automation with Apps Script

Apps Script gives you access to Gmail through the GmailApp service, letting you send emails, read threads, create drafts, apply labels, and much more — all without leaving your script.

In this series, we follow the Acme Corp sales team. They send deal confirmation emails to customers, weekly digest emails to sales reps, and automated follow-ups based on deal status — all driven from their Sales Tracker spreadsheet.

All examples in this series use a Sales Tracker Google Sheet with the following columns:

Customer NameEmailProductAmountRegionSales RepStatusDate
Sarah Johnson[email protected]Pro Plan299NorthAlex MartinezClosed2024-03-15
Mark Chen[email protected]Enterprise Plan999EastJordan LeeIn Progress2024-03-18
Lisa Park[email protected]Starter Plan99SouthSam RiveraClosed2024-03-20