Reference

email.quota

Your app's sending allowance for the current window, and how much is left.
email.quota() → EmailQuota

Your app's sending allowance and how much of it remains. Check it before a large send: read remaining and split the list across windows rather than discovering the cap partway through as a failed send. Going over throws outbound_daily_cap_exceeded.

Check before a large send
const { remaining } = await email.quota();
if (remaining !== null && recipients.length > remaining) {
  // split the list across windows rather than failing mid-send
}