zeabur-email
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseZeabur Email (ZSend) Management
Zeabur Email (ZSend) 管理
Always useto invoke Zeabur CLI. Never usenpx zeabur@latestdirectly or any other installation method. Ifzeaburis not available, install Node.js first.npx
请始终使用调用 Zeabur CLI。 不要直接使用npx zeabur@latest命令或任何其他安装方式。如果zeabur不可用,请先安装 Node.js。npx
Check Email Service Status
检查邮件服务状态
bash
npx zeabur@latest email status -i=false
npx zeabur@latest email status -i=false --jsonShows onboarding status and account info.
bash
npx zeabur@latest email status -i=false
npx zeabur@latest email status -i=false --json展示接入状态和账户信息。
Domain Management
域名管理
bash
undefinedbash
undefinedList all domains
列出所有域名
npx zeabur@latest email domains list -i=false
npx zeabur@latest email domains ls -i=false --json
npx zeabur@latest email domains list -i=false
npx zeabur@latest email domains ls -i=false --json
Add a domain
添加域名
npx zeabur@latest email domains add --domain example.com --region us-east-1 -i=false
npx zeabur@latest email domains add --domain example.com --region us-east-1 -i=false
Get domain details and DNS records
获取域名详情和DNS记录
npx zeabur@latest email domains get --id <domain-id> -i=false
npx zeabur@latest email domains get --id <domain-id> -i=false
Verify domain DNS records
验证域名DNS记录
npx zeabur@latest email domains verify --id <domain-id> -i=false
npx zeabur@latest email domains verify --id <domain-id> -i=false
Delete a domain
删除域名
npx zeabur@latest email domains delete --id <domain-id> -i=false
**Supported regions:** `us-east-1`, `us-west-1`, `eu-central-1`, `ap-northeast-1`, `ap-northeast-3`, `ap-southeast-1`npx zeabur@latest email domains delete --id <domain-id> -i=false
**支持的区域:** `us-east-1`, `us-west-1`, `eu-central-1`, `ap-northeast-1`, `ap-northeast-3`, `ap-southeast-1`Domain Setup Workflow
域名设置流程
bash
undefinedbash
undefined1. Add the domain
1. 添加域名
npx zeabur@latest email domains add --domain example.com --region us-east-1 -i=false --json
npx zeabur@latest email domains add --domain example.com --region us-east-1 -i=false --json
2. Get DNS records to configure (note the domain ID from step 1)
2. 获取需要配置的DNS记录(记录步骤1返回的域名ID)
npx zeabur@latest email domains get --id <domain-id> -i=false
npx zeabur@latest email domains get --id <domain-id> -i=false
3. Configure the required DNS records using the zeabur-domain-dns
skill, then verify
zeabur-domain-dns3. 使用 zeabur-domain-dns
skill 配置所需的DNS记录,然后进行验证
zeabur-domain-dnsnpx zeabur@latest email domains verify --id <domain-id> -i=false
undefinednpx zeabur@latest email domains verify --id <domain-id> -i=false
undefinedAPI Key Management
API Key管理
bash
undefinedbash
undefinedList all keys
列出所有密钥
npx zeabur@latest email keys list -i=false
npx zeabur@latest email keys ls -i=false --json
npx zeabur@latest email keys list -i=false
npx zeabur@latest email keys ls -i=false --json
Create a key
创建密钥
npx zeabur@latest email keys create --name "production" --permission send_only -i=false
npx zeabur@latest email keys create --name "production" --permission send_only -i=false
Delete a key
删除密钥
npx zeabur@latest email keys delete --id <key-id> -i=false
**Permissions:** `all`, `send_only`, `read_only`
**The token is only shown once at creation time.** Make sure the user saves it immediately.npx zeabur@latest email keys delete --id <key-id> -i=false
**权限类型:** `all`, `send_only`, `read_only`
**令牌仅在创建时展示一次,请确保用户立即保存。**Webhook Management
Webhook管理
bash
undefinedbash
undefinedList all webhooks
列出所有Webhook
npx zeabur@latest email webhooks list -i=false
npx zeabur@latest email webhooks ls -i=false --json
npx zeabur@latest email webhooks list -i=false
npx zeabur@latest email webhooks ls -i=false --json
Create a webhook
创建Webhook
npx zeabur@latest email webhooks create
--name "delivery-tracker"
--endpoint "https://example.com/webhook"
--events "delivery,bounce"
-i=false
--name "delivery-tracker"
--endpoint "https://example.com/webhook"
--events "delivery,bounce"
-i=false
npx zeabur@latest email webhooks create
--name "delivery-tracker"
--endpoint "https://example.com/webhook"
--events "delivery,bounce"
-i=false
--name "delivery-tracker"
--endpoint "https://example.com/webhook"
--events "delivery,bounce"
-i=false
Verify a webhook
验证Webhook
npx zeabur@latest email webhooks verify --id <webhook-id> -i=false
npx zeabur@latest email webhooks verify --id <webhook-id> -i=false
Delete a webhook
删除Webhook
npx zeabur@latest email webhooks delete --id <webhook-id> -i=false
**Supported events:** `send`, `delivery`, `bounce`, `complaint`, `reject`, `open`, `click`
**The webhook secret is only shown once at creation time.** Make sure the user saves it immediately.npx zeabur@latest email webhooks delete --id <webhook-id> -i=false
**支持的事件:** `send`, `delivery`, `bounce`, `complaint`, `reject`, `open`, `click`
**Webhook密钥仅在创建时展示一次,请确保用户立即保存。**Send an Email
发送邮件
Use the REST API directly with . The endpoint is .
curlhttps://api.zeabur.com/api/v1/zsend/emailsbash
curl -X POST https://api.zeabur.com/api/v1/zsend/emails \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <api-key>" \
-d '{
"from": "sender@example.com",
"to": ["recipient@example.com"],
"subject": "Hello from Zeabur Email",
"html": "<h1>Hello!</h1><p>This is a test email.</p>",
"text": "Hello! This is a test email."
}'- : Must use a verified domain (e.g.,
from)noreply@example.com - : Array of recipient email addresses
to - : Email subject line
subject - : HTML body (optional if
htmlis provided)text - : Plain text body (optional if
textis provided)html
The API key must have or permission. If no key exists, create one first (see API Key Management above).
send_onlyall直接使用 调用REST API,接口地址为 。
curlhttps://api.zeabur.com/api/v1/zsend/emailsbash
curl -X POST https://api.zeabur.com/api/v1/zsend/emails \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <api-key>" \
-d '{
"from": "sender@example.com",
"to": ["recipient@example.com"],
"subject": "Hello from Zeabur Email",
"html": "<h1>Hello!</h1><p>This is a test email.</p>",
"text": "Hello! This is a test email."
}'- : 必须使用已验证的域名(例如
from)noreply@example.com - : 收件人邮箱地址数组
to - : 邮件主题
subject - : HTML格式正文(如果提供了
html则为可选)text - : 纯文本格式正文(如果提供了
text则为可选)html
API密钥必须拥有或权限。如果没有可用的密钥,请先创建一个(参考上方的API Key管理部分)。
send_onlyall