views:

135

answers:

2

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

In testing my little script I got a 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.

+1  A: 

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.

Joseph
Hmm, I don't know. I'm talking about logging in using my gmail account, then in spreadsheets.google.com going to Tools->Scripts. They list a limit of 500/day. I'll have to do an experiment, but I think I got cut off much earlier than 500.
Jose M Vidal
It could be that they have additional rate limiting enabled if your using a script. But that's just a guess.
Joseph
A: 

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.

Kevin
Thanks! this must be a new method. Awesome.
Jose M Vidal