[−][src]Struct lettre_email::SimpleEmail
Simple representation of an email, useful for some transports
Methods
impl SimpleEmail
[src]
impl SimpleEmail
pub fn header<A: IntoHeader>(self, header: A) -> SimpleEmail
[src]
pub fn header<A: IntoHeader>(self, header: A) -> SimpleEmail
Adds a generic header
pub fn add_header<A: IntoHeader>(&mut self, header: A)
[src]
pub fn add_header<A: IntoHeader>(&mut self, header: A)
Adds a generic header
pub fn from<A: IntoMailbox>(self, address: A) -> SimpleEmail
[src]
pub fn from<A: IntoMailbox>(self, address: A) -> SimpleEmail
Adds a From
header and stores the sender address
pub fn add_from<A: IntoMailbox>(&mut self, address: A)
[src]
pub fn add_from<A: IntoMailbox>(&mut self, address: A)
Adds a From
header and stores the sender address
pub fn to<A: IntoMailbox>(self, address: A) -> SimpleEmail
[src]
pub fn to<A: IntoMailbox>(self, address: A) -> SimpleEmail
Adds a To
header and stores the recipient address
pub fn add_to<A: IntoMailbox>(&mut self, address: A)
[src]
pub fn add_to<A: IntoMailbox>(&mut self, address: A)
Adds a To
header and stores the recipient address
pub fn cc<A: IntoMailbox>(self, address: A) -> SimpleEmail
[src]
pub fn cc<A: IntoMailbox>(self, address: A) -> SimpleEmail
Adds a Cc
header and stores the recipient address
pub fn add_cc<A: IntoMailbox>(&mut self, address: A)
[src]
pub fn add_cc<A: IntoMailbox>(&mut self, address: A)
Adds a Cc
header and stores the recipient address
pub fn in_reply_to<A: IntoMailbox>(self, address: A) -> SimpleEmail
[src]
pub fn in_reply_to<A: IntoMailbox>(self, address: A) -> SimpleEmail
Adds a In-Reply-To
to the header
pub fn reference<A: IntoMailbox>(self, address: A) -> SimpleEmail
[src]
pub fn reference<A: IntoMailbox>(self, address: A) -> SimpleEmail
Adds a Reference
to the header
pub fn bcc<A: IntoMailbox>(self, address: A) -> SimpleEmail
[src]
pub fn bcc<A: IntoMailbox>(self, address: A) -> SimpleEmail
Adds a Bcc
header and stores the recipient address
pub fn add_bcc<A: IntoMailbox>(&mut self, address: A)
[src]
pub fn add_bcc<A: IntoMailbox>(&mut self, address: A)
Adds a Bcc
header and stores the recipient address
pub fn reply_to<A: IntoMailbox>(self, address: A) -> SimpleEmail
[src]
pub fn reply_to<A: IntoMailbox>(self, address: A) -> SimpleEmail
Adds a Reply-To
header
pub fn add_reply_to<A: IntoMailbox>(&mut self, address: A)
[src]
pub fn add_reply_to<A: IntoMailbox>(&mut self, address: A)
Adds a Reply-To
header
pub fn subject<S: Into<String>>(self, subject: S) -> SimpleEmail
[src]
pub fn subject<S: Into<String>>(self, subject: S) -> SimpleEmail
Adds a Subject
header
pub fn set_subject<S: Into<String>>(&mut self, subject: S)
[src]
pub fn set_subject<S: Into<String>>(&mut self, subject: S)
Adds a Subject
header
pub fn date(self, date: Tm) -> SimpleEmail
[src]
pub fn date(self, date: Tm) -> SimpleEmail
Adds a Date
header with the given date
pub fn set_date(&mut self, date: Tm)
[src]
pub fn set_date(&mut self, date: Tm)
Adds a Date
header with the given date
pub fn attachment<S: Into<String>>(self, path: S) -> SimpleEmail
[src]
pub fn attachment<S: Into<String>>(self, path: S) -> SimpleEmail
Adds an attachment to the message
pub fn add_attachment<S: Into<String>>(&mut self, path: S)
[src]
pub fn add_attachment<S: Into<String>>(&mut self, path: S)
Adds an attachment to the message
pub fn text<S: Into<String>>(self, body: S) -> SimpleEmail
[src]
pub fn text<S: Into<String>>(self, body: S) -> SimpleEmail
Sets the email body to plain text content
pub fn set_text<S: Into<String>>(&mut self, body: S)
[src]
pub fn set_text<S: Into<String>>(&mut self, body: S)
Sets the email body to plain text content
pub fn html<S: Into<String>>(self, body: S) -> SimpleEmail
[src]
pub fn html<S: Into<String>>(self, body: S) -> SimpleEmail
Sets the email body to HTML content
pub fn set_html<S: Into<String>>(&mut self, body: S)
[src]
pub fn set_html<S: Into<String>>(&mut self, body: S)
Sets the email body to HTML content
Trait Implementations
impl IntoEmail for SimpleEmail
[src]
impl IntoEmail for SimpleEmail
fn into_email(self) -> Result<Email, Error>
[src]
fn into_email(self) -> Result<Email, Error>
Builds an email
impl Default for SimpleEmail
[src]
impl Default for SimpleEmail
fn default() -> SimpleEmail
[src]
fn default() -> SimpleEmail
Returns the "default value" for a type. Read more
impl PartialEq<SimpleEmail> for SimpleEmail
[src]
impl PartialEq<SimpleEmail> for SimpleEmail
fn eq(&self, other: &SimpleEmail) -> bool
[src]
fn eq(&self, other: &SimpleEmail) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SimpleEmail) -> bool
[src]
fn ne(&self, other: &SimpleEmail) -> bool
This method tests for !=
.
impl Clone for SimpleEmail
[src]
impl Clone for SimpleEmail
fn clone(&self) -> SimpleEmail
[src]
fn clone(&self) -> SimpleEmail
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for SimpleEmail
[src]
impl Eq for SimpleEmail
impl Debug for SimpleEmail
[src]
impl Debug for SimpleEmail
Auto Trait Implementations
impl Send for SimpleEmail
impl Send for SimpleEmail
impl Sync for SimpleEmail
impl Sync for SimpleEmail
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more