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. See MailKite.Client.new/1.
Build a client from a token and a custom base URL. See MailKite.Client.new/2.
Functions
Build a client. See MailKite.Client.new/1.
Build a client from a token and a custom base URL. See MailKite.Client.new/2.