Rust SDK

Crate layout follows resend-rust. Set PIGEON_BASE_URL when the API is not local.

github.com/pigeonfs/pigeon-rust

Install

shell
cargo add --git https://github.com/pigeonfs/pigeon-rust pigeon

Send an email

Rust
use pigeon::{Pigeon, SendEmailRequest};

#[tokio::main]
async fn main() -> Result<(), pigeon::Error> {
    let pigeon = Pigeon::new("pg_your_key");
    let email = pigeon
        .emails
        .send(&SendEmailRequest {
            from: "Ada <ada@yourdomain.com>".into(),
            to: vec!["person@example.com".into()],
            subject: "Hello from Rust".into(),
            html: Some("<p>Hello</p>".into()),
            ..Default::default()
        })
        .await?;
    println!("Email {} has been sent", email.id);
    Ok(())
}
All SDK libraries API reference

© 2026 Pigeon. Email on your Amazon SES account.