* A binding that allows a Worker to send email messages.
| 10469 | * A binding that allows a Worker to send email messages. |
| 10470 | */ |
| 10471 | interface SendEmail { |
| 10472 | send(message: EmailMessage): Promise<EmailSendResult>; |
| 10473 | send(builder: { |
| 10474 | from: string | EmailAddress; |
| 10475 | to: string | string[]; |
| 10476 | subject: string; |
| 10477 | replyTo?: string | EmailAddress; |
| 10478 | cc?: string | string[]; |
| 10479 | bcc?: string | string[]; |
| 10480 | headers?: Record<string, string>; |
| 10481 | text?: string; |
| 10482 | html?: string; |
| 10483 | attachments?: EmailAttachment[]; |
| 10484 | }): Promise<EmailSendResult>; |
| 10485 | } |
| 10486 | declare abstract class EmailEvent extends ExtendableEvent { |
| 10487 | readonly message: ForwardableEmailMessage; |
| 10488 | } |
nothing calls this directly
no outgoing calls
no test coverage detected