You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ken Aguilar adeb476f7e bumped version 4 years ago
docs How to 4 years ago
src Bounces 4 years ago
.gitignore initial tracking 4 years ago
LICENSE Initial commit 4 years ago Readme 4 years ago
bsconfig.json NPM 4 years ago
package-lock.json unsubscribes 4 years ago
package.json bumped version 4 years ago


mailgun-js bucklescript bindings.

Mailgun is a cloud-based email service for sending, receiving and tracking email sent through your websites and applications. mailgun-js is a node module for interacting with Mailgun’s api. This bucklescript library is a binding for mailgun-js.


npm install @piq9117/bs-mailgun



  "bs-dependencies": [


Sending Mail

let mailgunKeys =
    ~apiKey:"YOUR API KEY"
    ~domain:"YOUR DOMAIN"

let mailgun = Mailgun.mailgun req

let emailData =
    ~from:"Excited User <>"
    ~text:"Testing some Mailgun awesomeness!"
let messages = Mailgun.Message.messages mailgun

let sendMail =
  let open Belt_Result in
  Mailgun.Message.send messages emailData (fun s ->
    match s with
    | Ok o -> Js.log o
    | Error e -> Js.log e 

More examples on how to use this bindings library