Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Sends emails through Aliyun enterprise email (smtp.mxhichina.com) via SMTP. Supports plain text, Markdown with code syntax highlighting, and HTML content. Attachments and body-from-file are also supported.
Purpose-built for Aliyun's SMTP service, so it handles the specific port and TLS setup that generic mail tools often misconfigure with that provider.
When to use it
- Send a code report with syntax-highlighted Python snippets
- Email a weekly PDF report with an HTML summary
- Automate notification emails from a server script
- Send log files as attachments after a scheduled job
- Deliver Markdown-formatted documentation to teammates
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: send a Markdown code report to team@example.com with an attached CSV
- 1Read SMTP credentials from /root/.openclaw/aliyun-mail-config.json
- 2Compose Markdown body with code block
- 3Run aliyun-mail send with --markdown flag and --attachments pointing to the CSV
- 4Retry up to 3 times on transient SMTP errors
- 5Confirm delivery or report error details
Email delivered to team@example.com with rendered Markdown and CSV attachment
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.