package tidy_email_mailgun

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type config = {
  1. api_key : string;
    (*

    An alphanumeric string found on the Mailgun console.

    *)
  2. base_url : string;
    (*

    e.g. https://api.mailgun.net/v3/<your domain>

    *)
}
val backend : ?client:http_post -> config -> Tidy_email.Email.t -> (unit, string) Lwt_result.t

If the underlying request to Sendgrid's API is unsuccessful, the response body is provided in the result.

client allows the user to customize how their HTTP post is performed. Most users will want to use the default.