Karta.SMTP.Reply (Karta v1.0.0)

An SMTP reply (RFC 5321 §4.2): a three-digit code, an optional enhanced status code (RFC 3463) and one or more text lines.

Summary

Functions

Wire form. Every line ends in CRLF.

Types

t()

@type t() :: %Karta.SMTP.Reply{
  code: 200..599,
  enhanced: String.t() | nil,
  lines: [String.t(), ...]
}

Functions

encode(reply)

@spec encode(t()) :: iodata()

Wire form. Every line ends in CRLF.

new(code, enhanced, text)

@spec new(200..599, String.t() | nil, String.t() | [String.t(), ...]) :: t()