Something went wrong. Try again.
SMTP backend implementation for sendr. sendr-smtp.hexdocs.pm
gleam sendr emall smtp
Something went wrong. Try again.
924 B · 45 lines
at trunk
12345678910111213141516171819202122232425262728293031323334353637383940414243444546//// Public types for the available encoders.//// Available encodings.
/// The possible RFC's to follow when encoding a string using/// QuotedPrintable.pub type Rfc { Rfc2045 Rfc2047}
/// Field types as defined in RFC 822.////// - `Unstructured`: Fields that contain text not further structured/// (e.g., Subject, Comments)./// - `Structured`: Fields that have a formally defined structure/// (e.g., From, To, Date, Message-ID).pub type FieldType { Unstructured Structured}
/// Available encodingspub type Encoding { Bit(Int) Base64 PercentEncoding QuotedPrintable(Rfc) Text(FieldType)}
/// Mode to use when encodingpub type EncodingMode { Ascii Utf8}
/// Errors which can be returned from the encoder functionspub type EncoderError { InvalidCharacter(String) InvalidEmailAddress(String) InvalidDomain(String) MaximumSizeExceeded(Int) NoEncoderFound UnknownError}