Sends a simple email as the script runner.
class MailApp method .sendEmail()
MailApp is the Apps Script service.
.sendEmail() is the method name you will see after a dot in your code.
What it does
Why it's used
- Quick alerts when you do not need full Gmail thread handling.
- Simple script-finished emails from triggers.
Common errors
- Forgetting parentheses on sendEmail. Write MailApp.sendEmail(), not MailApp.sendEmail or sendEmail by itself.
- Skipping dots between chained calls. Each step needs a dot, like MailApp.sendEmail().
- Adding spaces where they do not belong. Write MailApp.sendEmail(), not MailApp .sendEmail(), MailApp.sendEmail (), or MailApp . sendEmail().
- Wrong capitalization. Use MailApp and sendEmail, not mailapp or sendemail.
Snippets using this method
- Simple Inventory Management Automations
- Send Better Email When Google Form Filled Out
- Spreadsheet Automation for Beginners
- Send a Daily Email with Inspiring Quote - A Little Pick Me Up
- Sheet Stories / Video Notes + Clear 24 Hour Old Videos
- Send Daily Email Updates
- Send Daily Email Updates
- Onboarding Scheduler
- MicroManager: Hourly Email Reminders
- Manage Your Wedding Guest List in Google Sheets
- Email Myself a Daily Random Motivational Quote
- Email Yourself a Cell from a Google Sheet, Every Day
- Create New Worksheet When Google Form Submitted
- Create a PR Agency From Scratch
- Build a Book Recommender with AI in Google Sheets
- Different Kinds of Automation
- 5 Ways To Use Google Sheets for Advanced Project Management
Explore
Related methods
-
.getRemainingDailyQuota()
Returns how many emails the script can still send today.
More Apps Script
Better Sheets tutorials
Automate Emails
Build a Book Recommender with AI in Google Sheets
Create a PR Agency From Scratch
Create New Worksheet When Google Form Submitted
Email Myself a Daily Random Motivational Quote
Email Yourself a Cell from a Google Sheet, Every Day
MicroManager: Hourly Email Reminders
Onboarding Scheduler
Send a Daily Email with Inspiring Quote - A Little Pick Me Up
Send Better Email When Google Form Filled Out
Send Daily Email Updates
Simple Inventory Management Automations
Related blog posts
Written guides about MailApp.sendEmail().
How I Send Invoice Emails Straight From a Google Sheet (With a Script You Can Copy)
A copy-ready Apps Script that emails invoices from a Google Sheet, flags bad rows, and nudges overdue clients once a week. A guest post by Tahir Abbas.
Read post →Simply Email Yourself From a Google Sheet
I wanted to share with you one of the simplest apps scripts that has immense power. Email! You can email others, but you can also email yourself.
Read post →Email Yourself a Cell from a Google Sheet, Every Day
I'll show you how to email yourself one single cell data. That's one sheet, one cell, one email every single day.
Read post →