Postbote
Reference

Message Model

Fields accepted by send and fields passed to adapters after normalization.

FieldInput typeNotes
fromstring | AddressRequired sender
toaddress or address arrayRequired recipient list
cc, bccaddress or address arrayOptional recipient lists
replyTostring | AddressOptional reply address
subjectstringRequired and CRLF-protected
html, textstringProvide at least one body format
attachmentsAttachment[]filename, content, optional contentType
headersRecord<string, string>Provider-neutral, CRLF-protected
tagsRecord<string, string>Provider-neutral metadata
src/emails/types.ts
interface Address {
  email: string;
  name?: string;
}

interface Attachment {
  filename: string;
  content: string | Uint8Array;
  contentType?: string;
}

interface SendResult {
  messageId: string;
  provider: string;
  raw?: unknown;
}

Adapters only receive the normalized message, where all address fields are Address objects and recipient fields are arrays.