Struct async_smtp::SendableEmail
source · pub struct SendableEmail { /* private fields */ }Expand description
Sendable email structure
Implementations§
source§impl SendableEmail
impl SendableEmail
sourcepub fn new(envelope: Envelope, message: impl Into<Vec<u8>>) -> SendableEmail
pub fn new(envelope: Envelope, message: impl Into<Vec<u8>>) -> SendableEmail
Creates new email out of an envelope and a byte slice.
sourcepub fn new_with_reader(
envelope: Envelope,
message: Box<dyn Read + Send + Sync>
) -> SendableEmail
pub fn new_with_reader( envelope: Envelope, message: Box<dyn Read + Send + Sync> ) -> SendableEmail
Creates new email out of an envelope and a byte reader.