Google Apps Script 中的每日电子邮件限制是多少? [英] What is the daily email limit in Google Apps Script?

查看:21
本文介绍了Google Apps Script 中的每日电子邮件限制是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我是否有网页列出了 Google Apps 脚本发送的电子邮件的官方 Google 限制(配额)?

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:

服务调用次数过多:电子邮件(#59)

Service invoked too many times: email (# 59)

现在我无法再发送电子邮件.

此信息的明显位置是 MailApp.sendEmail文档.但是,这并没有说明限制.

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

我发现了这个讨论谷歌论坛自 2010 年 2 月 11 日起,用户在那里讨论了大约 100 或 500 封电子邮件/天的限制,24 小时禁止,但谷歌没有人提供正式答复.

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.

请注意,这是针对 Google Apps Script 的,它与 Google App Engine 不同,后者确实有明确的发布限制.

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

推荐答案

您可以使用 MailApp.getRemainingDailyQuota() 以估计"当天可以向不同收件人发送的电子邮件数量.

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

我今天没有发送任何电子邮件,函数返回 500,因此确认了约瑟夫建议的每日限制.

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

这篇关于Google Apps Script 中的每日电子邮件限制是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆