简体   繁体   中英

Google Suite App Script Email Sending Limit

I signed up for a google suite free trial and chose to make a domain name on the spot upon signing up for the free trial.

The free trial has a 500 emails per day sending limit using app script according to sites as oppose to consumer gmail accounts which can only send 100 emails per day.

What I did is make a simple script just to check if it could send 150 emails to make sure it is still within bound. ex.

myfunction(){
    for (var i = 0; i < 150; i++) 
    GmailApp.sendEmail(//my email, "Iteration", i);
}

But it didn't work and made an error about sending limits. I tried sending 100 emails and it worked. So basically, my sending limit didn't upgrade to 500.

I consulted with the contact support and it told me to "check with the smtp reference of the script."

I didn't do any modifications to the admin settings or anything. I just literally signed up for the gsuite so that I can send more than 100 emails using appscript for small scale business functions.

Unfortunately I didn't know what the google support meant. Can someone give a resolution to this issue? Or enlighten me with what the contact support mean about smtp reference.

This is actually a common mistake. People always think that by just signing up for a G Suite account they will be able to send more than 100 messages. As explained in the Scripts quotas article https://developers.google.com/apps-script/guides/services/quotas you can email 1,500 per day if you have a paid G Suite account but not in free trial. If you want to be able to send more than 100 emails per day via GAS, you must end the G Suite free trial, and then your account must be billed for at least USD 30 (or the same amount in your currency). This is also explained at https://support.google.com/a/answer/166852?hl=en

* If you want to increase your limits sooner, you can end your free trial and pay the amount now. For instructions, see Make a manual payment. It can take up to 48 hours to upgrade the limits after you submit the payment. *

You can easily check your daily remaining quota in google app script. You can use the following code to get that.

var emailQuotaRemaining = MailApp.getRemainingDailyQuota();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM