courier v0.1.0 Courier.Adapters.Agent
Agent Adapter
This adapter is not intended to be used directly but instead should be used by another adapter:
defmodule MyCustomAdapter do
use Courier.Adapters.Agent
end
Summary
Functions
Clears all messages
Deletes the specific message
Delivers the message by storing in an Agent
Returns a list of all messages in the Agent
Returns a list of all messages for the given recipient
Unique list of all recipients for all messages
Functions
Returns a list of all messages in the Agent
Returns an empty list if no messages are found
Returns a list of all messages for the given recipient
defmodule MockAdapter do
use Courier.Adapters.Agent
end
MockAdapter.start_link([])
MockAdapter.messages_for("joe@example.com")
[%Mail.Message{...}, %Mail.Message{...}]