
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@profullstack/emailer
Advanced tools
Mass emailer for Profullstack apps — Resend batch API with SMTP fallback
Mass emailer for Profullstack apps. Wraps Resend's batch API with a simple interface for sending bulk emails. Zero runtime dependencies.
npm install @profullstack/emailer
import { createEmailer } from '@profullstack/emailer';
const emailer = createEmailer({
resendApiKey: process.env.RESEND_API_KEY,
});
const result = await emailer.send({
from: 'App <noreply@example.com>',
to: 'user@example.com',
subject: 'Hello',
html: '<p>Hello world</p>',
text: 'Hello world',
});
// { sent: true, id: 're_...' }
const result = await emailer.sendBulk({
from: 'App <noreply@example.com>',
to: ['alice@example.com', 'bob@example.com', ...],
subject: 'Big announcement',
html: '<p>Something exciting</p>',
text: 'Something exciting',
batchSize: 100, // default: 100 (Resend's batch limit)
delayMs: 500, // optional delay between batches
});
// { sent: 2, failed: 0, errors: [] }
Pass a function for html or text to customize per recipient:
await emailer.sendBulk({
from: 'App <noreply@example.com>',
to: emails,
subject: 'Your weekly digest',
html: (email) => `<p>Hi ${email}, here's your digest…</p>`,
});
createEmailer(config)| Option | Type | Description |
|---|---|---|
resendApiKey | string | Resend API key (required) |
defaultFrom | string | Default from address used when not provided per-call |
emailer.send(opts)| Option | Type | Description |
|---|---|---|
from | string | Sender (falls back to defaultFrom) |
to | string | Recipient |
subject | string | Subject line |
html | string | HTML body |
text | string? | Plain-text body |
replyTo | string? | Reply-to address |
headers | Record<string,string>? | Extra headers (e.g. List-Unsubscribe) |
attachments | Array<{filename,content}>? | Base64-encoded attachments |
Returns { sent: boolean, id?: string, error?: string }.
emailer.sendBulk(opts)Same as send but to is string[], html/text can be a (email: string) => string function, plus:
| Option | Type | Default | Description |
|---|---|---|---|
batchSize | number | 100 | Recipients per Resend batch call |
delayMs | number | 0 | Delay between batch calls |
Returns { sent: number, failed: number, errors: Array<{email, error}> }.
MIT © Profullstack Inc
FAQs
Mass emailer for Profullstack apps — Resend batch API with SMTP fallback
The npm package @profullstack/emailer receives a total of 418 weekly downloads. As such, @profullstack/emailer popularity was classified as not popular.
We found that @profullstack/emailer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.