pub struct DirectEmailProvider { /* private fields */ }Expand description
直接交付邮件提供者
直接查询收件人域名的 MX 记录,并连接目标邮件服务器发送邮件。 这种方式让程序直接充当 MTA(邮件传输代理)。
Implementations§
Source§impl DirectEmailProvider
impl DirectEmailProvider
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 DirectEmailProvider
impl EmailProvider for DirectEmailProvider
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 DirectEmailProvider
impl RefUnwindSafe for DirectEmailProvider
impl Send for DirectEmailProvider
impl Sync for DirectEmailProvider
impl Unpin for DirectEmailProvider
impl UnsafeUnpin for DirectEmailProvider
impl UnwindSafe for DirectEmailProvider
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