Prompt
How do I throttle outbound email so I don't get rate limited?
Latest observation
Nov 24, 2026
OpenAI APIWeb search: off
To avoid outbound email rate limits, the main idea is to control send volume and pace so you stay within your provider’s limits and keep recipient reputation healthy.
Practical ways to throttle outbound email
-
Check provider limits first
- Look up your ESP/mail server limits for:
- messages per minute/hour/day
- recipients per message
- SMTP connections per minute
- concurrent connections
- If you’re using Gmail/Outlook/SES/SendGrid/Mailgun, the limits differ a lot.
- Look up your ESP/mail server limits for:
-
Use a queue
- Don’t send directly from the app request.
- Put emails into a queue/table and have a worker process them gradually.
-
Rate-limit the worker
- Add a cap like:
N emails per minuteM recipients per secondX concurrent SMTP connections
- If you get a
4xxthrottling response, back off.
- Add a cap like:
-
Batch carefully
- If sending the same content to many users, send in small batches.
- Avoid huge bursts at the top of the hour or after deploys.
-
Add exponential backoff
- On temporary SMTP errors like
421,450,451,452, pause and retry later. - Increase delay after each failure.
- On temporary SMTP errors like
-
Spread sends over time
- Jitter the schedule so not all messages go out at once.
- Example: random delay within a window.
-
Respect per-domain pacing
- Some providers throttle by destination domain, not just total volume.
- Track separate queues for
gmail.com,outlook.com, etc.
-
Use dedicated IPs or warmed-up infrastructure
- If volume is high, shared IPs can hit limits sooner.
- Warm up gradually instead of blasting full volume immediately.
-
Monitor responses
- Log SMTP response codes and provider API errors.
- Alert on spikes in throttling, deferrals, and bounces.
Simple throttling pattern
- Queue emails
- Worker sends at a fixed rate, e.g. 10/sec
- On rate limit error:
- stop sending briefly
- requeue the message
- retry with backoff
Example strategy
If your limit is 1,000 emails/hour:
- aim for 800–900/hour
- send at a steady pace of about 13–15/minute
- keep a buffer for retries and spikes
If you want a concrete implementation
Tell me what stack you’re using:
- SMTP directly
- AWS SES
- SendGrid/Mailgun/Postmark
- Node/Python/PHP/.NET/etc.
I can give you a code example for throttling and retrying in that environment.