Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liammartens/resend-client-rs
Basic port of Resend client for sending emails (main logic ported from Go SDK)
https://github.com/liammartens/resend-client-rs
Last synced: 11 days ago
JSON representation
Basic port of Resend client for sending emails (main logic ported from Go SDK)
- Host: GitHub
- URL: https://github.com/liammartens/resend-client-rs
- Owner: LiamMartens
- License: mit
- Created: 2023-11-19T23:09:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-20T02:13:10.000Z (about 1 year ago)
- Last Synced: 2024-11-19T11:36:59.828Z (about 1 month ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# resend-client-rs
[![crates.io](https://img.shields.io/crates/v/resend-client-rs.svg)](https://crates.io/crates/resend-client-rs)
[![Released API docs](https://docs.rs/resend-client-rs/badge.svg)](https://docs.rs/resend-client-rs)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)Client for sending emails with Resend. Main logic ported from official [Go library](https://github.com/resendlabs/resend-go).
This library is more complete than other available options since it includes the domain endpoints.
## Installation
`cargo add resend-client-rs`
## Usage
```rust
use resend_client_rs::Client;let client = Client::new("API_KEY");
let result = client.email_service.send(&SendEmailRequest {
subject: "My subject".to_string(),
from: "[email protected]".to_string(),
to: vec!["[email protected]".to_string()],
cc: None,
bcc: None,
reply_to: None,
html: None,
text: None,
tags: None,
attachments: None,
headers: None,
}).await;
```