Skip to content

fix: align send-batch-emails with batch API tag support#188

Closed
cpenned wants to merge 4 commits into
mainfrom
cursor/batch-send-attachments-91a0
Closed

fix: align send-batch-emails with batch API tag support#188
cpenned wants to merge 4 commits into
mainfrom
cursor/batch-send-attachments-91a0

Conversation

@cpenned

@cpenned cpenned commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Aligns send-batch-emails with the Resend batch API. Only tags are supported as an extra per-email field.

Changes

  • Remove scheduledAt from the batch email schema and handler (was incorrectly exposed)
  • Clarify tool description: batch emails support tags only
  • Align tags field description with send-email
  • Add test coverage for tags being passed to resend.batch.send
Open in Web Open in Cursor 

Mirror send-email attachment handling in the batch send MCP tool so
scheduledAt, tags, and attachments are all passed through to the API.

Co-authored-by: cpenned <cpenned@users.noreply.github.com>
@cursor cursor Bot changed the title Add attachments support to send-batch-emails feat: add attachments support to send-batch-emails Jul 10, 2026
Co-authored-by: cpenned <cpenned@users.noreply.github.com>

@mayankbohradev mayankbohradev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on batch parity with send-email.

I double-checked this against current Resend docs and the official SDKs before commenting.

Public docs still say batch does not support attachments

Official SDKs still omit attachments from batch types

Why this matters for this PR

The PR description says this aligns with an updated batch API, and the new tests mock batch.send, so they prove MCP pass-through — not that the live API accepts attachments. If the API still rejects them, agents would get a runtime failure after the MCP accepts the args.

Questions for maintainers:

  1. Has batch attachments shipped on the API already, and docs/SDKs just haven’t caught up?
  2. If not, should we hold exposing attachments on send-batch-emails until the API supports it (or clearly document that it will fail upstream)?

Smaller related note: send-batch-emails already exposes scheduledAt, which has the same documented limitation. Adding attachments makes that gap more user-facing.

Happy to re-check if there’s an internal/API update I’m missing.

Remove unsupported scheduledAt and attachments from send-batch-emails.
Batch send only supports tags beyond the core email fields.

Co-authored-by: cpenned <cpenned@users.noreply.github.com>
@cursor cursor Bot changed the title feat: add attachments support to send-batch-emails fix: align send-batch-emails with batch API limitations Jul 13, 2026
@cursor cursor Bot changed the title fix: align send-batch-emails with batch API limitations fix: align send-batch-emails with batch API tag support Jul 15, 2026
Co-authored-by: cpenned <cpenned@users.noreply.github.com>
@cpenned cpenned closed this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants