Skip to content

feat(wrangler): add email.sending event subscription source#14737

Open
ttoino wants to merge 1 commit into
cloudflare:mainfrom
ttoino:joaop/MQ-1404
Open

feat(wrangler): add email.sending event subscription source#14737
ttoino wants to merge 1 commit into
cloudflare:mainfrom
ttoino:joaop/MQ-1404

Conversation

@ttoino

@ttoino ttoino commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Fixes MQ-1404 (internal).

Adds email.sending as an event subscription source for Queues event subscriptions.

wrangler queues subscription create now accepts --source email.sending together with two new flags:

  • --zone-id — the zone that owns the sending domain
  • --domain — the sending domain (zone apex or a verified subdomain)

Both flags are required for this source. wrangler queues subscription get renders the sending domain as the subscription's resource.

Implementation:

  • New EMAIL_SENDING member of EventSourceType and EmailSendingEventSource type
  • create.ts: parse/validate the new source and its flags
  • utils.ts: getSourceResource returns the domain for display
  • Changeset (wrangler minor)

  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation

Open in Devin Review

Add `email.sending` as an event subscription source for queues.
`wrangler queues subscription create` now accepts `--source email.sending`
with the required `--zone-id` and `--domain` flags, and
`wrangler queues subscription get` renders the sending domain as the
subscription resource.

Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: claude-opus-4-8 <noreply@anthropic.com>
@ttoino
ttoino requested a review from workers-devprod as a code owner July 17, 2026 08:14
@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5c531cd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Minor
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Jul 17, 2026
@workers-devprod
workers-devprod requested review from a team and edmundhung and removed request for a team July 17, 2026 08:15
@workers-devprod

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler
Show detailed file reviewers
  • .changeset/email-sending-event-subscription-source.md: [@cloudflare/wrangler]
  • packages/wrangler/src/tests/queues/queues-subscription.test.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/queues/cli/commands/subscription/create.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/queues/cli/commands/subscription/utils.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/queues/subscription-types.ts: [@cloudflare/wrangler]

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 17, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@14737

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@14737

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@14737

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@14737

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@14737

miniflare

npm i https://pkg.pr.new/miniflare@14737

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@14737

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@14737

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@14737

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@14737

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@14737

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@14737

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@14737

wrangler

npm i https://pkg.pr.new/wrangler@14737

commit: 5c531cd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants