Skip to content
You're viewing documentation for v0.2.0. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Message

Reference for EmailMessage, addresses, attachments, headers, and tags.

EmailMessage

Every message must include:

  • from
  • at least one to
  • subject
  • html or text

Addresses

An address can be a string or an object with a display name.

Attachments

Use content for in-memory attachments. String content is treated as raw content and encoded to Base64 for API providers that require it. Use contentEncoding: "base64" when the string is already Base64.

Use path when you want Email SDK to read a local file before sending. See field support for adapter-specific attachment support.

Headers and tags

Headers can be an object or a list:

Tags are provider-specific. Resend accepts tags. Postmark maps the first tag to its Tag field.

Last updated on