package tidy_email_sendgrid

  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 Sendgrid console.

    *)
  2. base_url : string;
    (*

    e.g. https://api.sendgrid.com/v3/mail/send

    *)
}
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.

OCaml

Innovation. Community. Security.