Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.8 KB

README.md

File metadata and controls

50 lines (40 loc) · 1.8 KB


Asynchronous Nim 👑 client for interacting with the MailerSend API

nimble install mailersend

API reference
Github Actions Github Actions

😍 Key Features

  • Intuitive API interface
  • Direct to object serialization via pkg/jsony
  • Written in Nim 👑

Examples

import pkg/mailersend

var
  mls = initMailersend(getEnv("api_key"))
  mail = newEmail()

mail.setSubject("Hello, this is a test")
    .setFrom("Example.com", "[email protected]")
    .setTo("Joël Chibuzo", "[email protected]")
    .setText("This is a text/plain message")
    .setHtml("This is a <strong>text/html</strong> message")

let x: XHeaders = waitFor mls.send(mail)
echo x # (id: "660appx0cc4cf5d1c00xb113", paused: false)

# check current quota
let q = waitFor mls.getQuota()
echo q.remaining # 99

❤ Contributions & Support

🎩 License

MIT license. Made by Humans from OpenPeeps.
Copyright © 2024 OpenPeeps & Contributors — All rights reserved.