Skip to content

openpeeps/mailersend-nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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", "noreply@example.com")
    .setTo("Joël Chibuzo", "joel.chibuzo@test.com")
    .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.