Send Email with
Rust

Send email from Rust with an async-first crate built for performance-critical applications.

Send your first email

Install the SDK, set your API key, and call emails.send.

cargo add reloop tokio --features full
send_email.rust
use reloop::{Client, SendEmailParams};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new(std::env::var("RELOOP_API_KEY")?);

    let email = client
        .emails()
        .send(SendEmailParams {
            from: "Acme <onboarding@yourdomain.com>".into(),
            to: vec!["delivered@yourdomain.com".into()],
            subject: "Hello from Rust".into(),
            html: Some("<strong>It works!</strong>".into()),
            ..Default::default()
        })
        .await?;

    println!("Email sent: {}", email.id);
    Ok(())
}

Built for Rust developers

Idiomatic Rust client

Follows conventions your team already uses—clear types, predictable errors, and examples that match the official quickstart.

TokioAxumType-safe

Fast delivery

Messages route through Reloop's edge network for sub-second handoffs and high inbox placement.

Events & webhooks

Track delivered, bounced, and opened events from your Rust app with signed webhook payloads.

Production ready

API keys, domain verification, rate limits, and observability—everything you need before going live.

Three steps with Rust

1

Install

Run cargo add reloop tokio --features full in your project.

2

Authenticate

Add your Reloop API key from the dashboard and verify a sending domain.

3

Send

Copy the sample above or follow the full Rust guide.

Start sending with Rust

Get your API key and explore framework-specific tutorials in our documentation.

← All languages