pub struct SmtpMailer { /* private fields */ }Expand description
Sends email through an SMTP server.
Implementations§
Source§impl SmtpMailer
impl SmtpMailer
Sourcepub fn new(config: &SmtpConfig) -> Result<Self, String>
pub fn new(config: &SmtpConfig) -> Result<Self, String>
Prepares the connection; credentials come from the environment.
Trait Implementations§
Source§impl Debug for SmtpMailer
impl Debug for SmtpMailer
Auto Trait Implementations§
impl !RefUnwindSafe for SmtpMailer
impl !UnwindSafe for SmtpMailer
impl Freeze for SmtpMailer
impl Send for SmtpMailer
impl Sync for SmtpMailer
impl Unpin for SmtpMailer
impl UnsafeUnpin for SmtpMailer
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