Struct lettre::email::SimpleEmail
[−]
[src]
pub struct SimpleEmail { /* fields omitted */ }
Simple representation of an email, useful for some transports
Methods
impl SimpleEmail
[src]
fn header<A: ToHeader>(self, header: A) -> SimpleEmail
Adds a generic header
fn add_header<A: ToHeader>(&mut self, header: A)
Adds a generic header
fn from<A: ToMailbox>(self, address: A) -> SimpleEmail
Adds a From
header and stores the sender address
fn add_from<A: ToMailbox>(&mut self, address: A)
Adds a From
header and stores the sender address
fn to<A: ToMailbox>(self, address: A) -> SimpleEmail
Adds a To
header and stores the recipient address
fn add_to<A: ToMailbox>(&mut self, address: A)
Adds a To
header and stores the recipient address
fn cc<A: ToMailbox>(self, address: A) -> SimpleEmail
Adds a Cc
header and stores the recipient address
fn add_cc<A: ToMailbox>(&mut self, address: A)
Adds a Cc
header and stores the recipient address
fn reply_to<A: ToMailbox>(self, address: A) -> SimpleEmail
Adds a Reply-To
header
fn add_reply_to<A: ToMailbox>(&mut self, address: A)
Adds a Reply-To
header
fn subject(self, subject: &str) -> SimpleEmail
Adds a Subject
header
fn set_subject(&mut self, subject: &str)
Adds a Subject
header
fn date(self, date: &Tm) -> SimpleEmail
Adds a Date
header with the given date
fn set_date(&mut self, date: &Tm)
Adds a Date
header with the given date
fn text(self, body: &str) -> SimpleEmail
Sets the email body to plain text content
fn set_text(&mut self, body: &str)
Sets the email body to plain text content
fn html(self, body: &str) -> SimpleEmail
Sets the email body to HTML content
fn set_html(&mut self, body: &str)
Sets the email body to HTML content
Trait Implementations
impl IntoEmail for SimpleEmail
[src]
fn into_email(&self) -> Result<Email, Error>
Builds an email
impl PartialEq for SimpleEmail
[src]
fn eq(&self, __arg_0: &SimpleEmail) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SimpleEmail) -> bool
This method tests for !=
.
impl Eq for SimpleEmail
[src]
impl Clone for SimpleEmail
[src]
fn clone(&self) -> SimpleEmail
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SimpleEmail
[src]
impl Default for SimpleEmail
[src]
fn default() -> SimpleEmail
Returns the "default value" for a type. Read more