A bulk email API is an HTTPS endpoint that accepts many emails at once and delivers them for you. Your code sends batches instead of single messages, the provider handles queuing and retries, and webhooks report what happened to each email. The hard part is not throughput. It is staying out of spam folders once you send thousands of messages a day.
What counts as bulk email?
Bulk email is any send where one message, or a template with small changes, goes to many people: newsletters, release notes, policy updates, end-of-month statements. It can be marketing or transactional. What makes it “bulk” to mailbox providers is volume from one domain.
Google’s sender guidelines define bulk senders as those sending close to 5,000 messages or more in a day to personal Gmail accounts. Yahoo publishes similar rules. If you are a bulk sender you must:
- Authenticate with SPF and DKIM, and publish a DMARC record.
- Align the From domain with SPF or DKIM.
- Offer one-click unsubscribe (RFC 8058) on marketing and promotional mail, and honor it within two days.
- Keep the spam rate reported in Postmaster Tools below 0.3%.
Our guide to the Gmail and Yahoo bulk sender rules covers each requirement in detail.
How bulk sending works through an API
- Build the recipient list from your database, filtered to people who should get this message.
- Render each message, merging names or account data into a template.
- Batch them. Group messages into requests the provider accepts, often 100 per call.
- Respect rate limits. Read the rate limit headers and slow down before you get a 429.
- Make retries safe with an idempotency key per batch, so a timeout and retry does not double-send.
- Listen to webhooks for bounces and complaints, and add those addresses to a suppression list.
Best practices for bulk email
- Separate streams. Put campaigns on a subdomain such as
news.acme.comso their reputation does not drag down receipts and password resets. - Warm up new domains. Start with your most engaged recipients and grow over a few weeks. See email warm-up.
- Clean before you send. Remove addresses that hard bounced, complained or have not opened anything in a long time.
- Send a text part. Multipart mail with both HTML and text is easier for filters to trust and for everyone to read.
- Spread sends out. Sending a million emails in one minute looks like an attack. Pace large campaigns over minutes or hours.
Example bulk email
From: Acme Product <news@news.acme.com>
To: sam@example.com
Subject: What shipped in November: faster exports, new API filters
List-Unsubscribe: <https://acme.com/u/abc123>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
Hi Sam,
Three changes landed this month:
1. CSV exports run in the background on large projects.
2. The API accepts date filters on /reports.
3. You can pin dashboards to the sidebar.
Full notes: https://acme.com/changelog
You get this because you have an Acme account.
Unsubscribe from product news: https://acme.com/u/abc123
Sending in bulk with Mailcandor
Mailcandor’s POST /v1/emails/batch takes an array of up to 100 emails. If any email in the batch is invalid, none are sent and the error names its position, so you never half-send a batch. Batches cannot carry attachments or be scheduled.
This Node.js script sends to any number of recipients in batches of 100, with a retry-safe idempotency key per batch and a pause when it hits the rate limit:
const API = 'https://api.mailcandor.com/v1/emails/batch';
const headers = {
Authorization: `Bearer ${process.env.MAILCANDOR_KEY}`,
'Content-Type': 'application/json',
};
export async function sendBulk(campaignId, recipients) {
for (let i = 0; i < recipients.length; i += 100) {
const batch = recipients.slice(i, i + 100).map((r) => ({
from: 'Acme Product <news@news.acme.com>',
to: r.email,
subject: 'What shipped in November',
html: `<p>Hi ${r.firstName},</p><p>Three changes landed this month...</p>`,
text: `Hi ${r.firstName},\n\nThree changes landed this month...`,
headers: {
'List-Unsubscribe': `<https://acme.com/u/${r.token}>`,
'List-Unsubscribe-Post': 'List-Unsubscribe=One-Click',
},
tags: [{ name: 'campaign', value: campaignId }],
}));
for (;;) {
const res = await fetch(API, {
method: 'POST',
headers: { ...headers, 'Idempotency-Key': `${campaignId}-${i}` },
body: JSON.stringify(batch),
});
if (res.status === 429) {
const wait = Number(res.headers.get('retry-after') ?? 1);
await new Promise((r) => setTimeout(r, wait * 1000));
continue;
}
if (!res.ok) {
const { error } = await res.json();
throw new Error(`Batch at ${i}: ${error.type}: ${error.message}`);
}
break;
}
}
}
Rate limits are per team: 5 requests a second on Starter, 10 on Pay as you go and 50 on Team, with ratelimit-* headers on every response. Hard bounces and complaints are added to your suppression list automatically. For newsletters with audiences, contacts and topics, Broadcasts handles the list and the unsubscribe link for you. Pay as you go is $0.50 per 1,000 emails after the first 3,000; Team is $39 a month with 100,000 included. See pricing.
Common pitfalls
- Bought or scraped lists. They contain spam traps and people who never asked. Complaints will follow, and no provider can fix that.
- No unsubscribe header. Marketing mail to Gmail without one-click unsubscribe risks rejection for bulk senders.
- Retrying without idempotency. A timeout does not mean the batch failed. Without a key, the retry sends everything twice.
- Ignoring bounces. Sending repeatedly to dead addresses raises your bounce rate, a signal of poor list hygiene.
- One domain for everything. A bad campaign can push your login emails into spam. Split streams by subdomain.
- Personal data in tags. Tags show up in logs and webhooks. Use campaign ids, not email addresses.