Inttegro.Chimes.EmailMessageInput (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Email Message Input in the Chimes API.

Build this struct with new!/1 and pass it to the corresponding function on Inttegro.Chimes. Required keys are enforced immediately; optional values left as nil are omitted from the request sent to Inttegro.

Sends and schedules transactional messages.

Chimes deliver email or SMS content to inline recipients, saved customers, or template-defined recipients. A returned chime records rendering, safety, and transmission results; delivery may continue asynchronously after the API call succeeds.

Summary

Types

t()

A validated email message input request.

Functions

Builds a Inttegro.Chimes.EmailMessageInput and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Chimes.EmailMessageInput{
  from_: Inttegro.Chimes.EmailMailboxInput.t(),
  headers: %{optional(String.t()) => String.t()} | nil,
  html: String.t() | nil,
  reply_to: String.t() | nil,
  subject: String.t(),
  text: String.t()
}

A validated email message input request.

Functions

new!(attrs \\ %{})

@spec new!(map() | keyword()) :: t()

Builds a Inttegro.Chimes.EmailMessageInput and raises KeyError when a required field is missing.