smtp_util (gen_smtp v1.3.1-1)
View SourceModule with some general utility functions for SMTP.
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 first
Parse list of mail addresses in RFC-5322#section-3.4 mailbox-list format
Generate 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.
Types
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.
-spec guess_FQDN() -> string().
guess the current host's fully qualified domain name, on error return "localhost"
returns a sorted list of mx servers for Domain, lowest distance first
-spec parse_rfc822_addresses(string() | binary()) -> {ok, [name_address()]} | {error, any()}.
-spec parse_rfc5322_addresses(string() | binary()) -> {ok, [name_address()]} | {error, any()}.
Parse list of mail addresses in RFC-5322#section-3.4 mailbox-list format
Generate 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.