Mail Service

  • The Mail service allows scripts to send email on a user's behalf.

  • Unlike the Gmail Service, the Mail Service cannot access a user's Gmail account.

  • The MailApp class is used for sending emails.

  • The MailApp class provides methods to send emails and check the remaining daily quota.

This service allows scripts to send email on a user's behalf. See also Gmail Service. Unlike Gmail Service, Mail Service's sole purpose is sending email; it cannot access a user's Gmail account.

Classes

NameBrief description
MailAppSends email.

MailApp

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.