View Source smtp_util (gen_smtp v1.2.0)
Link to this section Summary
Functions
Compute the CRAM digest of
Key
and Data
Generate a unique MIME message boundary
Generate a unique message ID
Generate a seed string for CRAM.
guess the current host's fully qualified domain name, on error return "localhost"
returns a sorted list of mx servers for
Domain
, lowest distance firstParse list of mail addresses in RFC-5322#section-3.4
mailbox-list
formatGenerate a RFC 5322 timestamp based on the current time
Trim \r\n from
String
Calculate the current timezone and format it like -0400. Borrowed from YAWS.
Link to this section Types
Specs
name_address() :: {Name :: string() | undefined, Address :: string()}.
Link to this section Functions
Specs
compute_cram_digest(Key :: binary(), Data :: binary()) -> binary().
Key
and Data
Specs
get_cram_string(Hostname :: string()) -> string().
Specs
guess_FQDN() -> string().
Domain
, lowest distance first
Specs
parse_rfc5322_addresses(string() | binary()) -> {ok, [name_address()]} | {error, any()}.
mailbox-list
format
Specs
parse_rfc822_addresses(string() | binary()) -> {ok, [name_address()]} | {error, any()}.
Specs
trim_crlf(String :: string()) -> string().
String