* A binding that allows a Worker to send email messages.
| 13528 | * A binding that allows a Worker to send email messages. |
| 13529 | */ |
| 13530 | interface SendEmail { |
| 13531 | send(message: EmailMessage): Promise<EmailSendResult> |
| 13532 | send(builder: { |
| 13533 | from: string | EmailAddress |
| 13534 | to: string | EmailAddress | (string | EmailAddress)[] |
| 13535 | subject: string |
| 13536 | replyTo?: string | EmailAddress |
| 13537 | cc?: string | EmailAddress | (string | EmailAddress)[] |
| 13538 | bcc?: string | EmailAddress | (string | EmailAddress)[] |
| 13539 | headers?: Record<string, string> |
| 13540 | text?: string |
| 13541 | html?: string |
| 13542 | attachments?: EmailAttachment[] |
| 13543 | }): Promise<EmailSendResult> |
| 13544 | } |
| 13545 | declare abstract class EmailEvent extends ExtendableEvent { |
| 13546 | readonly message: ForwardableEmailMessage |
| 13547 | } |
nothing calls this directly
no outgoing calls
no test coverage detected