360 Secure SkillHub
360 安全技能中心

Send transactional email via DmartechX/Iemail OpenAPI. Configure in OpenClaw skills env or use secret.md.

该 Skill 提供 Python 脚本与 shell 封装,调用 Iemail OpenAPI 发送单封事务邮件;需在宿主配置中设置访问密钥、密钥 secret 与发件人环境变量,支持收件人、主题、正文参数,并给出 401、发件人地址不匹配等错误的排查提示。

jack-atlas
jack-atlas
热度 55.40
最近更新 2026-05-17 14:17:33
分类:协作依赖:代码执行 / 第三方 API / 读写文件应用场景:邮件起草 / API 集成 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add iemail-send
Metadata
name
iemail-send
description
Send transactional email via Iemail OpenAPI. Configure via OpenClaw skill env only.
homepage
https://app.dmartech.cn/
metadata
{"openclaw":{"emoji":"📧","requires":{"anyBins":["python3"],"env":["IEMAIL_ACCESS_KEY","IEMAIL_ACCESS_KEY_SECRET","IEMAIL_SENDER"]},"primaryEnv":"IEMAIL_ACCESS_KEY"}}

Iemail Send

Send transactional single email via Dmartech/Iemail OpenAPI using Python.

Configuration

Configure in ~/.openclaw/openclaw.json:

"skills": {
  "entries": {
    "iemail-send": {
      "enabled": true,
      "env": {
        "IEMAIL_ACCESS_KEY": "your-access-key",
        "IEMAIL_ACCESS_KEY_SECRET": "your-access-key-secret",
        "IEMAIL_SENDER": "your-sender@example.com"
      }
    }
  }
}
Variable Description
IEMAIL_ACCESS_KEY OpenAPI access key
IEMAIL_ACCESS_KEY_SECRET OpenAPI access key secret
IEMAIL_SENDER Sender email address (required)
IEMAIL_TO Default recipient (optional)

Agent instructions

  1. Credentials: Read ~/.openclaw/openclaw.json or workspace config files. OpenClaw injects env at runtime.
  2. Send mail: Run script in workspace:
    python3 {baseDir}/send_email.py --to "recipient@example.com" --subject "Subject" --content "Body"
    

Usage examples

python3 {baseDir}/send_email.py --to "recipient@example.com" --subject "Hello" --content "Hello from Iemail"
python3 {baseDir}/send_email.py "recipient@example.com" "Hello" "Hello from Iemail"

Troubleshooting

  • 401 Unauthorized: Check IP whitelist, key/secret, and system time.
  • cannot find senderAddressSn: Check IEMAIL_SENDER matches a configured sender address.