/install aliyun-mail
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.jsonin 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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install aliyun-mail - 安装完成后,直接呼叫该 Skill 的名称或使用
/aliyun-mail触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。