Packages

An elixir wrapper around gen_smtp that makes handler and sender registration easier.

Current section

Files

Jump to
pique lib handlers data.ex
Raw

lib/handlers/data.ex

defmodule Pique.Handlers.DATA do
@moduledoc """
Default implementation of a DATA handler. Takes a the current state
of the smtp session and returns the state in an {:ok, state} or
{:error, reason} tuple.
"""
@behaviour Pique.Behaviours.Handler
@spec handle(map) :: {:ok, map}
def handle(state) do
{:ok, state}
end
end