Packages

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

Current section

Files

Jump to
pique lib handlers mail.ex
Raw

lib/handlers/mail.ex

defmodule Pique.Handlers.MAIL do
@moduledoc """
Default implementation of a MAIL handler. Takes an email address
returns the email address in an {:ok, email} or
{:error, reason} tuple.
"""
@behaviour Pique.Behaviours.Handler
@spec handle(String.t) :: {:ok, String.t}
def handle(email) do
{:ok, email}
end
end