View Source gen_smtp_server (gen_smtp v1.2.0)
Link to this section Summary
Functions
Return the list of active SMTP session pids.
Start the listener with callback module
Module
with default options linked to no process.Start the listener with callback module
Module
with options Options
linked to no process.Start the listener as a registered process with callback module
Module
with options Options
linked to no process.Stop the listener pid()
Pid
with reason normal
.Link to this section Types
Specs
options() :: [{domain, string()} | {address, inet:ip4_address()} | {family, inet | inet6} | {port, inet:port_number()} | {protocol, tcp | ssl} | {ranch_opts, ranch:opts()} | {sessionoptions, gen_smtp_server_session:options()}].
Specs
server_name() :: any().
Link to this section Functions
Specs
sessions(Name :: server_name()) -> [pid()].
Specs
start(CallbackModule :: atom()) -> {ok, pid()} | ignore | {error, any()}.
Module
with default options linked to no process.
Specs
start(CallbackModule :: module(), Options :: options()) -> {ok, pid()} | ignore | {error, any()}.
Module
with options Options
linked to no process.
Specs
start(ServerName :: server_name(), CallbackModule :: module(), Options :: options()) -> {ok, pid()} | {error, any()}.
Module
with options Options
linked to no process.
Specs
stop(Name :: server_name()) -> ok.
Pid
with reason normal
.