resend-client-rs 0.1.0

Basic port of Resend client
Documentation

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;