Crates.io | resend-client-rs |
lib.rs | resend-client-rs |
version | 0.1.0 |
source | src |
created_at | 2023-11-20 02:13:51.546778 |
updated_at | 2023-11-20 02:13:51.546778 |
description | Basic port of Resend client |
homepage | |
repository | https://github.com/LiamMartens/resend-client-rs |
max_upload_size | |
id | 1041630 |
size | 15,474 |
Client for sending emails with Resend. Main logic ported from official Go library.
This library is more complete than other available options since it includes the domain endpoints.
cargo add resend-client-rs
use resend_client_rs::Client;
let client = Client::new("API_KEY");
let result = client.email_service.send(&SendEmailRequest {
subject: "My subject".to_string(),
from: "from@domain.com".to_string(),
to: vec!["to@domain.com".to_string()],
cc: None,
bcc: None,
reply_to: None,
html: None,
text: None,
tags: None,
attachments: None,
headers: None,
}).await;