MailKite (MailKite v0.13.0)

Copy Markdown View Source

The official MailKite library for Elixir — receive email as a webhook, send over a verified domain, and give an AI agent its own inbox.

Build a client with new/1 (or MailKite.Client.new/1,2) and call the API through MailKite.Methods:

mk = MailKite.new(System.get_env("MAILKITE_API_KEY"))
{:ok, res} = MailKite.Methods.send(mk, %{
  "from" => "hello@app.mailkite.dev",
  "to" => "ada@example.com",
  "subject" => "Hi",
  "text" => "It works."
})

Local helpers (no network call): MailKite.Webhook (verify signatures, reply bodies) and MailKite.Crypto (at-rest encrypt/decrypt).

Summary

Functions

Build a client from a token and a custom base URL. See MailKite.Client.new/2.

Functions

new(token_or_opts)

Build a client. See MailKite.Client.new/1.

new(token, base_url)

Build a client from a token and a custom base URL. See MailKite.Client.new/2.