Email API for Node.js — YourTrend library
YourTrend
电子邮件 API 和 SMTP 活动 自动化 短信 网页推送 消息应用 统一收件箱 安全邮件 分析
ENUKRUDEESFRITPLPTHIZH
登录 免费开始
SDK · Node.js

YourTrend SDK for Node.js

The Node.js SDK is a single dependency-free file. Download it, include it, and send email, SMS and push via the YourTrend REST API.

安装

shell
curl -O https://yourtrend.online/sdk/yourtrend.js   # Node 18+

发送电子邮件

javascript
const YourTrend = require('./yourtrend');

const yt = new YourTrend('YOUR_API_KEY');

const res = await yt.sendEmail(
  'noreply@yourdomain.com',
  'user@example.com',
  'Hello from YourTrend',
  '<h1>Hi!</h1>'
);

console.log(res.status); // 202

Methods: sendEmail, sendSms, push (web push) and validateEmail. Each returns the HTTP status and the response body.

FAQ

Any external dependencies?

No. The Node.js SDK is a single standard-library file, no package manager required.

Where do I get an API key?

In the dashboard → API keys. Issue a key with only the scopes it needs.

几分钟内开始发送

免费开始。随着您的增长而扩展。您的客户会收到每一条消息。

此页面是通过搜索找到的

真实的搜索查询将人们带到这里——高亮的查询打开匹配的页面。