xsmtp

Crates.ioxsmtp
lib.rsxsmtp
version0.1.19
created_at2023-12-08 09:04:29.538227+00
updated_at2025-02-20 22:59:22.41602+00
descriptionsmtp send mail
homepagehttps://github.com/i18n-site/rust/tree/main/xsmtp
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1061848
size70,603
i18n.site (i18nsite)

documentation

README

xsmtp

use aok::OK;

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

  // xsmtp::send(
  //   "测试xsmtp 2",
  //   "i18n.site@gmail.com",
  //   "测试邮件 2",
  //   "正文\n测试",
  //   "",
  // )
  // .await
  OK
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Commit count: 68

cargo fmt