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