pub struct OutgoingEmail {
pub from: Address,
pub to: Vec<Address>,
pub cc: Vec<Address>,
pub bcc: Vec<Address>,
pub reply_to: Option<Address>,
pub subject: String,
pub body_text: Option<String>,
pub body_html: Option<String>,
pub in_reply_to: Option<String>,
pub references: Option<String>,
pub attachments: Vec<OutgoingAttachment>,
}Expand description
An outgoing email to be built into raw RFC 5322 bytes.
Used as input to crate::build_message.
§References
- RFC 5322 (message format)
- RFC 2046 (MIME multipart)
Fields§
§from: AddressSender address (RFC 5322 Section 3.6.2).
to: Vec<Address>To recipients (RFC 5322 Section 3.6.3).
cc: Vec<Address>Cc recipients (RFC 5322 Section 3.6.3).
bcc: Vec<Address>Bcc recipients — included in SMTP envelope (RCPT TO) but must not
appear in message headers (RFC 5322 Section 3.6.3).
reply_to: Option<Address>Reply-To address (RFC 5322 Section 3.6.2).
subject: StringSubject line (RFC 5322 Section 3.6.5).
body_text: Option<String>Plain text body.
body_html: Option<String>HTML body.
in_reply_to: Option<String>In-Reply-To message ID — bare addr-spec, builder wraps in angle brackets.
references: Option<String>References — space-separated bare message-ids, builder wraps each in angle brackets.
attachments: Vec<OutgoingAttachment>File attachments.
Trait Implementations§
Source§impl Clone for OutgoingEmail
impl Clone for OutgoingEmail
Source§fn clone(&self) -> OutgoingEmail
fn clone(&self) -> OutgoingEmail
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutgoingEmail
impl Debug for OutgoingEmail
Source§impl PartialEq for OutgoingEmail
impl PartialEq for OutgoingEmail
impl Eq for OutgoingEmail
impl StructuralPartialEq for OutgoingEmail
Auto Trait Implementations§
impl Freeze for OutgoingEmail
impl RefUnwindSafe for OutgoingEmail
impl Send for OutgoingEmail
impl Sync for OutgoingEmail
impl Unpin for OutgoingEmail
impl UnsafeUnpin for OutgoingEmail
impl UnwindSafe for OutgoingEmail
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more