package tidy_email_mailgun

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tidy_email_mailgunSource

Sourcetype 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>

    *)
}
Sourcetype http_post = ?body:Cohttp_lwt.Body.t -> ?headers:Cohttp.Header.t -> Uri.t -> (Cohttp.Response.t * Cohttp_lwt.Body.t) Lwt.t
Sourceval 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.

OCaml

Innovation. Community. Security.