xsmtp

Crates.ioxsmtp
lib.rsxsmtp
version0.1.13
sourcesrc
created_at2023-12-08 09:04:29.538227
updated_at2024-08-17 13:41:51.897226
descriptionsmtp send mail
homepagehttps://github.com/i18n-site/rust/tree/main/xsmtp
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1061848
size8,075
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: 21

cargo fmt