Rust

envelope

Module

Where the bytes go.

Contents

use utopia_smtp::Envelope;
Rust
pub struct Envelope

Where the bytes go, which is not the same question as what the headers say: the reverse-path (MAIL FROM) and the forward-paths (RCPT TO).

Rust
use utopia_smtp::Envelope;

let bounce = Envelope::new("", ["john@example.test"])?;
assert_eq!(bounce.sender(), "");
assert!(Envelope::new("jäne@example.test", ["john@example.test"])?.is_international());