Lettermint.Types.MessageAttachmentInput (Lettermint v2.0.0)

Copy Markdown View Source

A file attached to the message.

Fields

  • filename (required)
  • content (required)
  • content_type (optional, nullable): The MIME type of the attachment. Supports parameters (e.g. text/calendar; method=REQUEST). If omitted, detected automatically from content or filename.
  • content_id (optional, nullable): Content ID for inline attachments, referenced via cid: in HTML body. If no @ is present, @lm is appended automatically.

Absent fields are :unset; nil is JSON null. extra holds response fields that this version of the SDK does not know.

Summary

Types

t()

@type t() :: %Lettermint.Types.MessageAttachmentInput{
  content: String.t(),
  content_id: String.t() | nil | :unset,
  content_type: String.t() | nil | :unset,
  extra: %{optional(String.t()) => term()},
  filename: String.t()
}