services.email
Outbound email delivery and template rendering APIs.
services.email
- Stability:
stable - Canonical source:
packages/spec/src/contracts/email-service.ts
Methods
services.email.send(input: SendEmailInput): Promise<SendEmailResult>
services.email.sendTemplate(input: SendTemplateInput): Promise<SendEmailResult>Returns
SendEmailResult:
id: stringstatus: 'queued' | 'sent' | 'failed'messageId?: stringerror?: string
Typed Error Codes
sendTemplate may return/throw implementation errors including:
TEMPLATE_NOT_FOUNDTEMPLATE_INACTIVEMISSING_VARIABLES