← 返回 Skills 市场
jixsonwang

Aliyun Mail

作者 Jixson · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1109
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install aliyun-mail
功能描述
A skill to send emails via Aliyun enterprise email service with support for markdown, HTML text, attachments, and syntax highlighting for code blocks.
使用说明 (SKILL.md)

Aliyun Mail Skill

This skill enables sending emails through Aliyun enterprise email service with advanced features including Markdown conversion, HTML styling, file attachments, and syntax highlighting for code blocks.

Features

  • Aliyun Enterprise Email Support: Optimized for Aliyun's SMTP service (smtp.mxhichina.com)
  • Multiple Content Types: Send plain text, Markdown, or HTML emails
  • Markdown with Syntax Highlighting: Automatic syntax highlighting for code blocks in Markdown
  • File Attachments: Include one or more files as attachments
  • Configuration-based: Uses a secure configuration file for SMTP credentials
  • Error Handling: Includes retry logic and detailed error reporting

Prerequisites

  • SMTP Configuration File: Create aliyun-mail-config.json in your OpenClaw config directory (/root/.openclaw/)

Example configuration file:

{
  "server": "smtp.mxhichina.com",
  "port": 465,
  "username": "[email protected]",
  "password": "your-app-password",
  "emailFrom": "[email protected]",
  "useTLS": true
}

Ensure the configuration file has secure permissions:

chmod 600 /root/.openclaw/aliyun-mail-config.json

Usage

Basic Text Email

aliyun-mail send --to "[email protected]" --subject "Hello" --body "This is a plain text email"

Markdown Email with Syntax Highlighting

aliyun-mail send \
  --to "[email protected]" \
  --subject "Code Report" \
  --body "**Check out this Python code:**\
\
```python\
print('Hello World')\
```" \
  --markdown

HTML Email with Attachment

aliyun-mail send \
  --to "[email protected]" \
  --subject "Weekly Report" \
  --body "\x3Ch1>Weekly Report\x3C/h1>\x3Cp>See attached file.\x3C/p>" \
  --html \
  --attachments "/path/to/report.pdf"

Using Body from File

aliyun-mail send \
  --to "[email protected]" \
  --subject "Report from File" \
  --body-file "/path/to/report.md" \
  --markdown \
  --attachments "/path/to/data.csv"

Command Line Options

  • --to: Recipient email address (required)
  • --subject: Email subject (required)
  • --body: Email body content (required if --body-file not provided)
  • --body-file: Path to file containing email body
  • --html: Send as HTML email (default: plain text)
  • --markdown: Send as Markdown email with syntax highlighting
  • --attachments: Space-separated list of file paths to attach

Error Handling

The tool includes robust error handling with up to 3 retry attempts on failure. Network issues, authentication errors, and invalid email addresses are reported with detailed error messages.

Security Notes

  • Always use app-specific passwords rather than your main email password
  • Keep the configuration file secure with proper file permissions
  • Never commit configuration files to version control

Future Enhancements

  • Support for CC/BCC recipients
  • Email templates system
  • Scheduled email sending
  • Rich text editor integration
安全使用建议
This package appears to implement exactly what it claims (an SMTP email sender) but the documentation and CLI examples are inconsistent with the shipped script — double-check before use. Before installing or running: 1) inspect email_sender.py yourself (it is included) to confirm behavior; 2) store SMTP credentials in a secure location and prefer an app-specific password; 3) don't place credentials in world-readable locations and avoid running as root (the docs reference /root but the script uses the current user's home); 4) be cautious when supplying attachments or body-file paths — the tool will read and send any file you point it at, which could leak sensitive files if misused; 5) confirm the expected SMTP endpoint (smtp.mxhichina.com) and the package’s provenance (the repo/homepage referenced in package.json exists but the skill listing shows 'Source: unknown'). If you need the skill, update the docs to match the code (config filename/path and CLI flags) or request an author update; if provenance is unclear, prefer a vetted alternative.
功能分析
Type: OpenClaw Skill Name: aliyun-mail Version: 1.0.0 The OpenClaw skill is designed to send emails via Aliyun enterprise mail. Its core functionality involves reading user-specified files for email bodies and attachments, and sending them to a user-specified recipient via an SMTP server. While file access and network communication are inherently 'risky capabilities', they are directly aligned with the stated purpose of an email sending tool. There is no evidence of intentional malicious behavior such as unauthorized data exfiltration, persistence mechanisms, or prompt injection attempts against the agent in SKILL.md or README.md. The documentation even provides good security practices for handling credentials.
能力评估
Purpose & Capability
The code (email_sender.py) implements an SMTP client that sends plain, HTML, or Markdown emails with attachments and syntax highlighting, which aligns with the skill description (Aliyun enterprise SMTP). The need for a local JSON config file containing SMTP credentials is reasonable for an SMTP tool.
Instruction Scope
SKILL.md and README contain inconsistent instructions and filenames vs. the code: SKILL.md suggests a config named aliyun-mail-config.json in /root/.openclaw/, README uses smtp-config.json, and email_sender.py defaults to ~/.openclaw/smtp-config.json. SKILL.md examples call a CLI 'aliyun-mail send' with flags (--markdown, --html) that do not exist in the shipped Python CLI (email_sender.py uses --type with values 'plain'|'markdown'|'html' and no 'send' subcommand). The tool permits attaching arbitrary filesystem paths and reading body files; while expected for an email sender, this capability can be abused to exfiltrate files if a malicious actor or misconfigured agent supplies system file paths.
Install Mechanism
No install spec; this is instruction+code only. No remote downloads or archive extraction are performed by the skill package itself, which reduces install-time risk.
Credentials
The skill requests no environment variables, instead storing SMTP credentials in a local JSON config file. That is proportionate for SMTP usage, but the documentation's insistence on a /root/.openclaw path is root-centric and may not match the code's ~ expansion if run under a non-root account. The config file will contain sensitive SMTP username/password — that is expected but worth protecting. No other unrelated credentials are requested.
Persistence & Privilege
The skill is not marked always:true and does not request persistent system-level privileges or modify other skills. Agent autonomous invocation is enabled by default (disable-model-invocation:false) but this is normal for skills. There is no evidence it modifies other agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aliyun-mail
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aliyun-mail 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Aliyun Mail skill for advanced email sending via Aliyun’s enterprise service. - Send emails as plain text, HTML, or Markdown (with automatic syntax highlighting for code blocks). - Attach one or more files to outgoing emails. - Reliably integrates with Aliyun’s SMTP using secure config files and app-specific passwords. - Includes robust error handling with retry logic and detailed error messages. - Simple command-line interface supports all main options: body types, body from file, and attachments.
元数据
Slug aliyun-mail
版本 1.0.0
许可证
累计安装 4
当前安装数 2
历史版本数 1
常见问题

Aliyun Mail 是什么?

A skill to send emails via Aliyun enterprise email service with support for markdown, HTML text, attachments, and syntax highlighting for code blocks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1109 次。

如何安装 Aliyun Mail?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aliyun-mail」即可一键安装,无需额外配置。

Aliyun Mail 是免费的吗?

是的,Aliyun Mail 完全免费(开源免费),可自由下载、安装和使用。

Aliyun Mail 支持哪些平台?

Aliyun Mail 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Aliyun Mail?

由 Jixson(@jixsonwang)开发并维护,当前版本 v1.0.0。

💬 留言讨论