Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/openpeeps/mailersend-nim

The unofficial MailerSend Nim SDK
https://github.com/openpeeps/mailersend-nim

api-client api-client-nim mailersend nim nim-client nim-lang nim-sdk openpeeps openpeeps-api openpeeps-clients sdk smtp-client

Last synced: about 2 months ago
JSON representation

The unofficial MailerSend Nim SDK

Awesome Lists containing this project

README

        




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
```nim
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 text/html 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
- 🐛 Found a bug? [Create a new Issue](https://github.com/openpeeps/mailersend-nim/issues)
- 👋 Wanna help? [Fork it!](https://github.com/openpeeps/mailersend-nim/fork)
- 😎 [Get €20 in cloud credits from Hetzner](https://hetzner.cloud/?ref=Hm0mYGM9NxZ4)
- 🥰 [Donate via PayPal address](https://www.paypal.com/donate/?hosted_button_id=RJK3ZTDWPL55C)

### 🎩 License
MIT license. [Made by Humans from OpenPeeps](https://github.com/openpeeps).

Copyright © 2024 OpenPeeps & Contributors — All rights reserved.