resend-client-rs

Crates.ioresend-client-rs
lib.rsresend-client-rs
version0.1.0
sourcesrc
created_at2023-11-20 02:13:51.546778
updated_at2023-11-20 02:13:51.546778
descriptionBasic port of Resend client
homepage
repositoryhttps://github.com/LiamMartens/resend-client-rs
max_upload_size
id1041630
size15,474
Liam Martens (LiamMartens)

documentation

https://docs.rs/resend-client-rs

README

resend-client-rs

crates.io Released API docs MIT licensed

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;
Commit count: 3

cargo fmt