Mailman.TestServer (Mailman v0.4.3) View Source
Implementation of the testing SMTP server. The GenServer state is just a single list of "deliveries" that can be pushed to, cleared, and queried.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Sets "global" mode.
Starts the TestServer supervisor. Provided for compatibility.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Callback implementation for GenServer.init/1
.
Specs
Sets "global" mode.
When "global" mode is enabled, the calling process is ignored and a global
TestServer is used instead. Use this when you need to test e-mail sending
across multiple processes. Keep in mind that this is not async-safe, and you
should specify async: false
when using ExUnit.
Starts the TestServer supervisor. Provided for compatibility.
Mailman.TestServerSupervisor.start_link/0 is preferred, typically in your
test_helper.exs
file.