# @antelopejs/dms-mailing 中文文档

规范地址：https://npmcn.com/package/%40antelopejs/dms-mailing/

版本：0\.9\.0
npm 元数据更新时间：2026-11-04T22:49:09.180Z
中文译文更新时间：2026-11-09T19:56:43.067Z
软件包许可：Apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40antelopejs/dms-mailing
原文对照：https://npmcn.com/package/%40antelopejs/dms-mailing/?lang=original
项目主页：https://dms.antelopejs.com/docs/modules/mailing
源码仓库：https://github.com/AntelopeJS/dms-mailing

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：2.5 MB，724 个文件
- 模块格式：CommonJS
- TypeScript 类型：包内自带
- 运行依赖：11 个
- 首次发布：2026-09-18T21:13:52.123Z
- 最新版本发布：2026-11-04T22:49:08.863Z
- 近 30 天下载量：1764（2026-10-06 至 2026-11-04，npm 官方下载统计）
- 已发布版本数：17（近 12 个月 17 个）

## 中文简介

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

## 安装

```sh
npm install @antelopejs/dms-mailing
```

也可以使用：`pnpm add @antelopejs/dms-mailing`、`yarn add @antelopejs/dms-mailing`、`bun add @antelopejs/dms-mailing`

## README

# `@antelopejs/dms-mailing`

[![npm](https://img.shields.io/npm/v/@antelopejs/dms-mailing?style=for-the-badge&labelColor=000000&color=000000)](https://www.npmjs.com/package/@antelopejs/dms-mailing) [![License](https://img.shields.io/npm/l/@antelopejs/dms-mailing?style=for-the-badge&labelColor=000000&color=000000)](https://npmcn.com/package/%40antelopejs/dms-mailing/LICENSE) [![Discord](https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000)](https://discord.gg/g4pFt6eXqu) [![Documentation](https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000)](https://dms.antelopejs.com/docs/modules/mailing)

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](https://npmcn.com/package/%40antelopejs/dms-mailing/docs/images/captures/mailing-overview.webp)

## 它会做什么

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

## 安装

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

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

## 快开始

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

```ts
// 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`](https://github.com/AntelopeJS/dms-mailing/tree/main/packages/interface-dms-mailing)数字 :

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

await SendTemplate("order-confirmed", {
  tenantId,
  to: "sofie@example.com",
  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.0` | `0.3.0` |
| `@antelopejs/interface-api-util` | `>=0.3.0 <1.0.0` | `0.3.0` |
| `@antelopejs/interface-core` | `>=0.4.0 <1.0.0` | `0.4.0` |
| `@antelopejs/interface-data-api` | `>=0.6.1 <1.0.0` | `0.6.1` |
| `@antelopejs/interface-database` | `>=0.3.0 <1.0.0` | `0.3.0` |
| `@antelopejs/interface-database-decorators` | `>=0.2.0 <1.0.0` | `0.2.0` |
| `@antelopejs/interface-dms` | `>=0.12.0 <1.0.0` | `0.12.0` |
| `@antelopejs/interface-dms-automation` | `>=0.6.0 <1.0.0` | `0.6.0` |
| `@antelopejs/interface-dms-mailing` | `>=0.10.0 <0.11.0` | `0.10.0` |
| `@antelopejs/interface-email` | `>=0.0.6 <1.0.0` | `0.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 拒绝计划.

## 文档

-   [导言](https://dms.antelopejs.com/docs/modules/mailing/introduction)
-   [安装](https://dms.antelopejs.com/docs/modules/mailing/installation)
-   [配置](https://dms.antelopejs.com/docs/modules/mailing/configuration)
-   [使用量](https://dms.antelopejs.com/docs/modules/mailing/usage/overview)
-   [扩展](https://dms.antelopejs.com/docs/modules/mailing/extending): 从代码、模板作为代码发送、导入过去发送、提供者事件和网络呼号、自动化
-   [财务问题](https://dms.antelopejs.com/docs/modules/mailing/faq)

向导的消息来源 [`packages/dms-mailing/docs`](https://github.com/AntelopeJS/dms-mailing/tree/main/packages/dms-mailing/docs)模块将 `dms-mailing` Claude代码技巧 [`packages/dms-mailing/skills`](https://github.com/AntelopeJS/dms-mailing/tree/main/packages/dms-mailing/skills),在 `antelopeJs.skills`。 。 。 .

## 捐款

这个包裹住在 [`AntelopeJS/dms-mailing`](https://github.com/AntelopeJS/dms-mailing) pnpm 工作空间旁边 `@antelopejs/interface-dms-mailing`读取 [捐款额](https://github.com/AntelopeJS/dms-mailing/blob/main/CONTRIBUTING.md) 编辑 [仓库读取器](https://github.com/AntelopeJS/dms-mailing#contributing) 用于开发命令.

## 许可证

[阿帕奇 - 2.0](https://npmcn.com/package/%40antelopejs/dms-mailing/LICENSE)

## 常见问题

### @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 和提交记录判断。

