[][src]Struct lettre_email::EmailBuilder

pub struct EmailBuilder { /* fields omitted */ }

Builds an Email structure

Methods

impl EmailBuilder
[src]

Creates a new empty email

Sets the email body

Add a generic header

Adds a From header and stores the sender address

Adds a To header and stores the recipient address

Adds a Cc header and stores the recipient address

Adds a Bcc header and stores the recipient address

Adds a Reply-To header

Adds a In-Reply-To header

Adds a References header

Adds a Sender header

Adds a Subject header

Adds a Date header with the given date

Adds an attachment to the email from a file

If not specified, the filename will be extracted from the file path.

Adds an attachment to the email from a vector of bytes.

Set the message type

Adds a child

Sets the email body to plain text content

Sets the email body to HTML content

Sets the email content

Sets the envelope for manual destination control If this function is not called, the envelope will be calculated from the "to" and "cc" addresses you set.

Builds the Email

Trait Implementations

impl PartialEq<EmailBuilder> for EmailBuilder
[src]

impl Eq for EmailBuilder
[src]

impl Default for EmailBuilder
[src]

impl Clone for EmailBuilder
[src]

Performs copy-assignment from source. Read more

impl Debug for EmailBuilder
[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]