Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
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.
Mail
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[],["The Mail service enables scripts to send emails. It differs from Gmail Service by only sending emails, lacking access to Gmail accounts. The `MailApp` class facilitates this with methods like `sendEmail()` to dispatch messages, accepting variations in arguments for recipients, subject, body, and options. `getRemainingDailyQuota()` method returns the number of remaining recipients allowed for the day. The service focuses solely on outbound email functionality.\n"]]