14
votes

Can someone tell me if there is a webpage that lists the official Google limit (Quotas) on emails sent from a Google Apps Script?

In testing my little script I got an error:

Service invoked too many times: email (# 59)

and now I can't send any more emails.

The obvious place for this information would be in the MailApp.sendEmail documentation. But, that does not say anything about a limit.

I found this discussion on the google forum from 2/11/10 where users discuss about a 100 or 500 emails/day limit, with a 24 hour ban, but no one from Google provided an official answer.

Note that this is for Google Apps Script, which is different from the Google App Engine, which does have well published limits.

5

5 Answers

13
votes

You can use MailApp.getRemainingDailyQuota() to get an "estimate" of how many more emails to distinct recipients you can send for the day.

I haven't sent any emails today and the function returned 500, so that confirms the daily limit suggested by Joseph.

10
votes

Note that as of 30th January 2014 the quota is 100 outgoing emails per day:

Screenshot of the Google Apps dashboard showing 100 emails per day

Check https://docs.google.com/macros/dashboard for the latest values as "All quotas are subject to elimination, reduction or change at any time"…

4
votes

You may be interested in https://docs.google.com/macros/dashboard Here you can see every quota ;)

0
votes

Assuming that by "Google Apps Script" you are referring to a Google Apps account, then yes there is at http://www.google.com/support/a/bin/answer.py?hl=en&answer=166852. The limit is 500 external recipients per day.

0
votes

I don't have reference for this but in my experience I always calculate my minimum loop duration by taking the quota and dividing it by the number of seconds in the specified quota limit. So for example if I have a quota that says that I can look at a pretty girl only 86400 times a day then I try to make sure I only look at pretty girls once per second. It's clear to me that Google does not wait for you to reach a daily limit before they act they seem to calculate the rate of change of quota usage and shut you down when you exceed it.