smtp Service
Email capability acquired through a declared System Service.
Contract smtp · 1.0.0-draft.1
Functions
create
Mail.
| Argument | Type | Required | Default |
|---|---|---|---|
| subject | core.string | Yes | — |
| content | core.string | Yes | — |
| contentType | core.string | No | "text/plain" |
| data | core.object? | No | null |
| features | smtp.Features? | No | null |
Returns: smtp.Mail
Behavior
- create constructs a Mail using the supplied subject, content and optional content type, template data and features. The default content type is text/plain.
- send accepts a nonempty recipient list and queues the message. Queue acceptance is not proof of delivery or a durable business notification workflow.
- Template data is data, never executable code. Escape inserted HTML values for their actual output context.