smtp_send 0.1.2

SMTP email sending library with built-in DKIM signing and MX lookup support. / 支持内置 DKIM 签名和 MX 记录查询的 SMTP 邮件发送库。
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
  #[error(transparent)]
  MailSend(#[from] mail_send::Error),
  #[error(transparent)]
  MailAuth(#[from] mail_send::mail_auth::Error),
  #[error(transparent)]
  Io(#[from] std::io::Error),
  #[error(transparent)]
  Pkcs8(#[from] rsa::pkcs8::Error),
  #[error(transparent)]
  Spki(#[from] rsa::pkcs8::spki::Error),
}

pub type Result<T, E = Error> = std::result::Result<T, E>;