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: 3 months 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-20T02:13:10.000Z (over 1 year ago)
- Last Synced: 2025-03-10T07:36:57.318Z (4 months 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
[](https://crates.io/crates/resend-client-rs)
[](https://docs.rs/resend-client-rs)
[](./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;
```