1 unstable release
0.1.0 | Nov 20, 2023 |
---|
#271 in Email
15KB
345 lines
resend-client-rs
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.
Installation
cargo add resend-client-rs
Usage
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;
Dependencies
~7–19MB
~262K SLoC