xsmtp

Crates.ioxsmtp
lib.rsxsmtp
version0.1.9
sourcesrc
created_at2023-12-08 09:04:29.538227
updated_at2024-01-11 05:39:16.378526
descriptionsmtp send mail
homepagehttps://github.com/3TiSite/rust/tree/main/xsmtp
repositoryhttps://github.com/3TiSite/rust.git
max_upload_size
id1061848
size6,565
(3tieto)

documentation

README

xsmtp

#[tokio::test]
async fn test() -> anyhow::Result<()> {
  xsmtp::send(
    "测试xsmtp 1",
    "i18n.site@gmail.com",
    "测试邮件 1",
    "正文\n测试",
    "",
  )
  .await?;
  xsmtp::send(
    "测试xsmtp 2",
    "i18n.site@gmail.com",
    "测试邮件 2",
    "正文\n测试",
    "",
  )
  .await
}
Commit count: 1

cargo fmt