resend-rs
A minimal Resend client.
Add with:
Emails 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.
Documentation
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.
Features
blockingto enable the blocking client.native-tlsto use system-native TLS. Enabled by default.rustls-tlsto use TLS backed byrustls.
Variables
RESEND_API_KEYto enableimpl Defaultfor aResendclient (Required).RESEND_BASE_URLto override the default base address:https://api.resend.com(Optional).RATE_LIMITto set the maximum amount of requests you can send per second. By default, this is 9 (Resend defaults to 10). In reality, the time window is set to 1.1s to avoid failures. This is thread-safe (as long as you use the sameResendclient across threads!)