Module smtp_util

Module with some general utility functions for SMTP.

Description

Module with some general utility functions for SMTP.

Function Index

combine_rfc822_addresses/1
compute_cram_digest/2Compute the CRAM digest of Key and Data
generate_message_boundary/0Generate a unique MIME message boundary.
generate_message_id/0Generate a unique message ID.
get_cram_string/1Generate a seed string for CRAM.
guess_FQDN/0guess the current host's fully qualified domain name, on error return "localhost".
mxlookup/1returns a sorted list of mx servers for Domain, lowest distance first.
parse_rfc822_addresses/1
rfc5322_timestamp/0Generate a RFC 5322 timestamp based on the current time.
trim_crlf/1Trim \r\n from String
zone/0Calculate the current timezone and format it like -0400.

Function Details

combine_rfc822_addresses/1

combine_rfc822_addresses(Addresses) -> any()

compute_cram_digest/2

compute_cram_digest(Key::binary(), Data::binary()) -> binary()

Compute the CRAM digest of Key and Data

generate_message_boundary/0

generate_message_boundary() -> any()

Generate a unique MIME message boundary

generate_message_id/0

generate_message_id() -> any()

Generate a unique message ID

get_cram_string/1

get_cram_string(Hostname::string()) -> string()

Generate a seed string for CRAM.

guess_FQDN/0

guess_FQDN() -> string()

guess the current host's fully qualified domain name, on error return "localhost"

mxlookup/1

mxlookup(Domain) -> any()

returns a sorted list of mx servers for Domain, lowest distance first

parse_rfc822_addresses/1

parse_rfc822_addresses(B) -> any()

rfc5322_timestamp/0

rfc5322_timestamp() -> any()

Generate a RFC 5322 timestamp based on the current time

trim_crlf/1

trim_crlf(String::string()) -> string()

Trim \r\n from String

zone/0

zone() -> any()

Calculate the current timezone and format it like -0400. Borrowed from YAWS.


Generated by EDoc