Skip to content

Commit f5da3b4

Browse files
authored
Add allowed_sender_addresses to send email binding (cloudflare#25125)
Add documentation around the new "allowed_sender_addresses" attribute that allows a send email binding to be restricted in possible values of the sender of each email.
1 parent 07b6134 commit f5da3b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/docs/email-routing/email-workers/send-email-workers.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ send_email = [
2727

2828
## Types of bindings
2929

30-
There are three types of bindings:
30+
There are several types of restrictions you can configure in the bindings:
3131

3232
- **No attribute defined**: When you do not define an attribute, the binding has no restrictions in place. You can use it to send emails to any verified email address [through Email Routing](/email-routing/setup/email-routing-addresses/#destination-addresses).
3333
- **`destination_address`**: When you define the `destination_address` attribute, you create a targeted binding. This means you can only send emails to the chosen email address. For example, `{type = "send_email", name = "<NAME_FOR_BINDING>", destination_address = "<YOUR_EMAIL>@example.com"}`. <br/> For this particular binding, when you call the `send_email` function you can pass `null` or `undefined` to your Worker and it will assume the email address specified in the binding.
3434
- **`allowed_destination_addresses`**: When you specify this attribute, you create an allowlist, and can send emails to any email address on the list.
35+
- **`allowed_sender_addresses`**: When you specify this attribute, you create a sender allowlist, and can only send emails from an email address on the list.
3536

3637
<Render file="types-bindings" product="email-routing" />
3738

0 commit comments

Comments
 (0)