pub struct SendmailEmailProvider { /* private fields */ }Expand description
Sendmail 邮件提供者
通过本地 sendmail 命令发送邮件。
Implementations§
Source§impl SendmailEmailProvider
impl SendmailEmailProvider
Sourcepub fn with_config(from_email: String, config: SendmailConfig) -> Self
pub fn with_config(from_email: String, config: SendmailConfig) -> Self
使用指定配置创建 Sendmail 邮件提供者
Sourcepub fn build_email(&self, to: &str, subject: &str, body: &str) -> EmailMessage
pub fn build_email(&self, to: &str, subject: &str, body: &str) -> EmailMessage
构建邮件消息
Trait Implementations§
Source§impl EmailProvider for SendmailEmailProvider
impl EmailProvider for SendmailEmailProvider
Source§fn send_email<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
to: &'life1 str,
subject: &'life2 str,
body: &'life3 str,
) -> Pin<Box<dyn Future<Output = WaeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn send_email<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
to: &'life1 str,
subject: &'life2 str,
body: &'life3 str,
) -> Pin<Box<dyn Future<Output = WaeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
发送邮件 Read more
Auto Trait Implementations§
impl Freeze for SendmailEmailProvider
impl RefUnwindSafe for SendmailEmailProvider
impl Send for SendmailEmailProvider
impl Sync for SendmailEmailProvider
impl Unpin for SendmailEmailProvider
impl UnsafeUnpin for SendmailEmailProvider
impl UnwindSafe for SendmailEmailProvider
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