update,
This commit is contained in:
12
catmk2/task1/utils/checkEmailQuotaAvailable.js
Normal file
12
catmk2/task1/utils/checkEmailQuotaAvailable.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function checkEmailQuotaAvailable() {
|
||||
var output = { state: "init", debug: {}, error: {} };
|
||||
try {
|
||||
var emailQuotaRemaining = MailApp.getRemainingDailyQuota();
|
||||
|
||||
return emailQuotaRemaining > 0;
|
||||
} catch (error) {
|
||||
output = {...output , error}
|
||||
console.log('checkEmailQuotaAvailable error')
|
||||
console.log(output);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user