* A binding that allows a Worker to send email messages.
| 12727 | * A binding that allows a Worker to send email messages. |
| 12728 | */ |
| 12729 | interface SendEmail { |
| 12730 | send(message: EmailMessage): Promise<EmailSendResult>; |
| 12731 | send(builder: { |
| 12732 | from: string | EmailAddress; |
| 12733 | to: string | EmailAddress | (string | EmailAddress)[]; |
| 12734 | subject: string; |
| 12735 | replyTo?: string | EmailAddress; |
| 12736 | cc?: string | EmailAddress | (string | EmailAddress)[]; |
| 12737 | bcc?: string | EmailAddress | (string | EmailAddress)[]; |
| 12738 | headers?: Record<string, string>; |
| 12739 | text?: string; |
| 12740 | html?: string; |
| 12741 | attachments?: EmailAttachment[]; |
| 12742 | }): Promise<EmailSendResult>; |
| 12743 | } |
| 12744 | declare abstract class EmailEvent extends ExtendableEvent { |
| 12745 | readonly message: ForwardableEmailMessage; |
| 12746 | } |
nothing calls this directly
no outgoing calls
no test coverage detected