Mailtrap.Sending (mailtrap v0.2.0)

Mailtrap Sending API client

Summary

Functions

Generates client

Sends an email

Functions

client(token)

@spec client(String.t()) :: Tesla.Client.t()

Generates client

send(client, email)

@spec send(Tesla.Client.t(), Mailtrap.Email.t()) ::
  {:ok, map()} | {:error, Tesla.Env.t()}

Sends an email