Learn how to send your first email using the Resend Rust SDK.
cd
into it.
Resend::new
and hardcoding the API key, the RESEND_API_KEY
environment variable
can be used instead. The Resend::default()
should be used in that scenario instead.
.env
file.env
file for environment variables. You can use the
dotenvy
crate for that: