@antelopejs/dms-mailing

中文文档
0.9.0发布于 2026/11/05Apache-2.0TypeScriptCommonJS构建来源已验证近 30 天下载 1764

AntelopeJS DMS的电子邮件模板:包含草稿和版本的块编辑器,发送日志,发送度量衡和压制列表.

中文使用文档
文档目录8 节
  1. 它会做什么
  2. 安装
  3. 快开始
  4. 兼容性
  5. 块
  6. 文档
  7. 捐款
  8. 许可证

@antelopejs/dms-mailing

npm License Discord Documentation

AntelopeJS DMS的电子邮件模板,发送和发送度量衡.

The Mailing overview of the Helio demo: reach, engagement and list health for the last 30 days, the send volume chart and the items that need attention

它会做什么

  • 在块编辑器中设计电子邮件模板,包含被键入的变量,条件,列表和活测试数据.
  • 保留草案中的编辑,并作为版本出版,在多个地块中.
  • 从您的代码、自动化程序或仪表板中通过任何程序发送模板 @antelopejs/interface-email 供养.
  • 记录每个发送与提供者的时间表,并将发送,打开和点击事件变成一个概览.
  • 用硬弹跳、垃圾邮件投诉和未订阅的压制清单保护发件人的名声.

安装

从已加载的工程根端运行 AtelopeJS CLI @antelopejs/dms如果项目没有电子邮件提供者,则添加:

ajs project modules add @antelopejs/dms-mailing
ajs project modules add @antelopejs/nodemailer

快开始

在开发中,发送到一个丢弃的Etheal收件箱:

// antelope.config.ts
nodemailer: {
  source: { type: "package", package: "@antelopejs/nodemailer", version: ">=0.0.6 <1.0.0" },
  config: { ethereal: true },
},

重新打开后端, 然后打开前端 模块 QQ 邮件 (单位:千美元)/modules/mailing/overview) (中文(简体) ). 在没有模板的工作空间上创建 命令确认 模板来自启动画廊并发布。 它的子弹是 order-confirmed编辑 新模板 对话框从名称中取出 sults, 所以它给出 order-confirmation在发送前检查子弹 任何模块都可以通过 @antelopejs/interface-dms-mailing数字 :

import { SendTemplate } from "@antelopejs/interface-dms-mailing";

await SendTemplate("order-confirmed", {
  tenantId,
  to: "[email protected]",
  variables: {
    customer: { firstName: "Sofie" },
    order: {
      number: "#10482",
      total: { value: 4800, currency: "EUR" },
      lines: [{ name: "Linen shirt", total: { value: 4800, currency: "EUR" } }],
      url: "https://example.com/orders/10482",
    },
  },
});

兼容性

软件包支助测试过
@antelopejs/interface-api>=0.3.0 <1.0.00.3.0
@antelopejs/interface-api-util>=0.3.0 <1.0.00.3.0
@antelopejs/interface-core>=0.4.0 <1.0.00.4.0
@antelopejs/interface-data-api>=0.6.1 <1.0.00.6.1
@antelopejs/interface-database>=0.3.0 <1.0.00.3.0
@antelopejs/interface-database-decorators>=0.2.0 <1.0.00.2.0
@antelopejs/interface-dms>=0.12.0 <1.0.00.12.0
@antelopejs/interface-dms-automation>=0.6.0 <1.0.00.6.0
@antelopejs/interface-dms-mailing>=0.10.0 <0.11.00.10.0
@antelopejs/interface-email>=0.0.6 <1.0.00.0.6

模块还需要:

  • 执行此功能的版本中的 DMS 后端 @antelopejs/interface-dms 区域.
  • 这个 @antelopejs/dms-frontend 渲染器在 engines["@antelopejs/dms-frontend"] 内 frontend-vue/package.json编辑 ajs dms CLI拒绝使用该范围外的渲染器来构建模块.
  • 一个执行独特索引的数据库模块,例如 @antelopejs/mongodb 或者说 @antelopejs/postgres。 。 。 .
  • 电子邮件提供者,即 @antelopejs/interface-email 执行,例如 @antelopejs/nodemailer。 。 。 .

块

发送者通过它的sult找到一个模板,所以每个工作空间有一个sult属于一个模板. 这个 slug 指数 mailing_templates 表格是独一无二的。 在 sattle 上创建或复制模板另一个模板的答案,即使在比赛中也是如此 409 与 $dms_mailing.errors.duplicate_slug 并创造出什么。 删除模板将释放其弹出。 独特的索引需要一个执行独特的索引的数据库模块,例如 @antelopejs/mongodb 或者说 @antelopejs/postgres重新思考DB 拒绝计划.

文档

向导的消息来源 packages/dms-mailing/docs模块将 dms-mailing Claude代码技巧 packages/dms-mailing/skills,在 antelopeJs.skills。 。 。 .

捐款

这个包裹住在 AntelopeJS/dms-mailing pnpm 工作空间旁边 @antelopejs/interface-dms-mailing读取 捐款额 编辑 仓库读取器 用于开发命令.

许可证

阿帕奇 - 2.0

版本与发布记录

@antelopejs/dms-mailing 共发布 17 个版本,首次发布于 2026/09/19;过去 12 个月发布了 17 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.9.0latest2026/11/054 天前
0.8.02026/11/027 天前
0.7.12026/10/2416 天前
0.7.02026/10/2317 天前
0.6.12026/10/2020 天前
0.6.02026/10/1823 天前

关于 @antelopejs/dms-mailing 的常见问题

@antelopejs/dms-mailing 是什么?

AntelopeJS DMS的电子邮件模板:包含草稿和版本的块编辑器,发送日志,发送度量衡和压制列表.

如何安装 @antelopejs/dms-mailing?

在项目目录运行 npm install @antelopejs/dms-mailing,或使用 pnpm add / yarn add / bun add。

@antelopejs/dms-mailing 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@antelopejs/dms-mailing 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@antelopejs/dms-mailing 可以商用吗?

@antelopejs/dms-mailing 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@antelopejs/dms-mailing 的下载量有多少?

根据 npm 官方下载统计,@antelopejs/dms-mailing 在 2026/10/06 – 2026/11/04 这 30 天内被下载 1,764 次,日均约 59 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@antelopejs/dms-mailing 还在维护吗?

最新版本 0.9.0 发布于 2026/11/05(4 天前);至今共发布 17 个版本,其中过去 12 个月发布了 17 个;首次发布于 2026/09/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。