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

Sends a simple email as the script runner.

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.

Explore

Related methods

3 Better Sheets tutorials

5 Ways To Use Google Sheets for Advanced Project Management

5 Ways To Use Google Sheets for Advanced Project Management

Here are 5 advanced ways to manage projects inside of Google Sheets Man...
Automate Emails

Automate Emails

Set up automated email notifications based on Google Sheets data. Super ...
Automatic Calculations

Automatic Calculations

Create custom scripts to make your spreadsheets more like tools.

Related blog posts

Written guides about MailApp.sendEmail().

Browse the blog