Returns how many emails the script can still send today.
class MailApp method .getRemainingDailyQuota()
MailApp is the Apps Script service.
.getRemainingDailyQuota() is the method name you will see after a dot in your code.
What it does
Why it's used
- Stop before you hit the daily send limit.
- Show admins how many emails today's batch can still send.
Common errors
- Forgetting parentheses on getRemainingDailyQuota. Write MailApp.getRemainingDailyQuota(), not MailApp.getRemainingDailyQuota or getRemainingDailyQuota by itself.
- Skipping dots between chained calls. Each step needs a dot, like MailApp.getRemainingDailyQuota().
- Adding spaces where they do not belong. Write MailApp.getRemainingDailyQuota(), not MailApp .getRemainingDailyQuota(), MailApp.getRemainingDailyQuota (), or MailApp . getRemainingDailyQuota().
- Wrong capitalization. Use MailApp and getRemainingDailyQuota, not mailapp or getremainingdailyquota.
Explore
Related methods
-
.sendEmail()
Sends a simple email as the script runner.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.
Related blog posts
Written guides about MailApp.getRemainingDailyQuota().
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 →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 →Automated Project Management in Google Sheets
When you have multiple people working on multiple tasks, and you want everyone to be on the page, what do you do? You can use a Google Sheet. But managing projects can be an intimidating task in Google Sheets. It's a lot of data entry, right? Especially when you have multiple people working on different tasks with different statuses across different projects. Data entry for multiple projects, with different people, tasks, and statuses – it gets messy fast! I'm no stranger to these issues...
Read post →