Expand description
§use-email-envelope
SMTP envelope identity and path primitives for RustUse.
§Experimental
use-email-envelope is experimental while use-email remains below 0.3.0.
§Example
use use_email_envelope::{Envelope, EnvelopeRecipient, EnvelopeSender};
let envelope = Envelope::new(EnvelopeSender::new("bounce@example.com")?)
.with_recipient(EnvelopeRecipient::new("jane@example.com")?);
assert_eq!(envelope.sender().to_string(), "<bounce@example.com>");
assert_eq!(envelope.recipients().len(), 1);§Scope
- Reverse-path, forward-path, MAIL FROM, RCPT TO, envelope sender, recipient, and envelope containers.
- SMTP envelope identity modeled separately from visible message headers.
§Non-goals
- SMTP client behavior.
- Bounce processing.
- Delivery tracking.
§License
Licensed under either Apache-2.0 or MIT.
Structs§
- Envelope
- SMTP envelope with transport sender and recipients.
- Envelope
Address - SMTP envelope address. This is transport identity, not a visible header mailbox.
- Envelope
Recipient - Envelope recipient path.
- Envelope
Sender - Envelope sender path.
- Forward
Path - SMTP forward-path.
- Mail
From Path - MAIL FROM path wrapper.
- Rcpt
ToPath - RCPT TO path wrapper.
Enums§
- Reverse
Path - SMTP reverse-path, including the null reverse-path.