A minimal Resend client.
Add with:
cargo add resend-rs
cargo add tokio -F macros,rt-multi-threadEmails are sent via the Resend client which provides both a synchronous and
asynchronous send method. The two are mutually exclusive and accessible via the
blocking feature. The crate uses reqwest and serde
internally.
Crate documentation is available in docsrs. Example usage is available in the get started guide on the Resend website, you can also find examples in the API reference.
blockingto enable the blocking client.native-tlsto use system-native TLS. Enabled by default.rustls-tlsto use TLS backed byrustls.- WASM support (see example)
RESEND_API_KEYto enableimpl Defaultfor aResendclient (Required).RESEND_BASE_URLto override the default base address:https://api.resend.com(Optional).RESEND_RATE_LIMITto set the maximum amount of requests you can send per second. By default, this is 9 (Resend defaults to 10). See the docs for more information.
WARNING: Rate limiting only works when using the async version (default) of the crate