use-email-envelope 0.1.0

SMTP envelope identity and path primitives for RustUse
Documentation
  • Coverage
  • 100%
    36 out of 36 items documented1 out of 34 items with examples
  • Size
  • Source code size: 11.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 926.83 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-email
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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);
# Ok::<(), use_email_address::AddressValidationError>(())

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.