Send bindings


目录

import { WranglerConfig } from "~/components";

When you add a send_email binding to a Worker, you can restrict its sender and recipient addresses. The following Wrangler configuration variants apply these restrictions. For the binding API, refer to the Email Sending Workers API.

Binding types

Each send_email entry supports a different restriction choice. The sender address must belong to an onboarded Email Service domain.

{
	"send_email": [
		// Send to any verified destination
		{ "name": "EMAIL" },
		// Send only to a single fixed destination
		{
			"name": "NOTIFY_OPS",
			"destination_address": "ops@yourdomain.com",
		},
		// Send only to addresses on an allowlist
		{
			"name": "EMAIL_TEAM",
			"allowed_destination_addresses": [
				"alice@yourdomain.com",
				"bob@yourdomain.com",
			],
		},
		// Send only from addresses on an allowlist
		{
			"name": "RESTRICTED_EMAIL",
			"allowed_sender_addresses": [
				"noreply@yourdomain.com",
				"support@yourdomain.com",
			],
		},
	],
}

Next steps


版本号 #2
由 壳壳虫 创建于 2026-11-01 02:12:24 UTC
由 壳壳虫 更新于 2026-11-01 02:12:25 UTC