Send
Source:
src/Cloudflare/Email/Send.ts
Bind a {@link SendEmail} send_email descriptor to a Worker and obtain the
Effect-native client for sending email.
Send is a single identifier that is simultaneously the binding’s Context
tag, its type, and the callable — yield* Cloudflare.Email.Send(EmailDescriptor).
Examples
Section titled “Examples”const Email = Cloudflare.Email.SendEmail("Email");
// in the Worker effect:const email = yield* Cloudflare.Email.Send(Email);yield* email.send({ from: "noreply@example.com", to: "user@example.com", subject: "Hello", text: "Hi from Alchemy",});