Learn how to send transactional emails using Plunk with Rust
Cargo.toml
file:
.env
in your project’s root directory. This file will securely store your Plunk API key:
PlunkPayloads
as an envelope for your email. Here’s what each part means:
Part | What It Is | Example |
---|---|---|
to | Who gets the email | "hello@example.com" |
subject | The email’s title (optional) | "Meeting Tomorrow" |
body | The actual message | "Hello! How are you?" |
body
field supports HTML, so you can make your emails look pretty!
.env
file