← Back to Skills Marketplace
jixsonwang

Aliyun Mail

by Jixson · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1109
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install aliyun-mail
Description
A skill to send emails via Aliyun enterprise email service with support for markdown, HTML text, attachments, and syntax highlighting for code blocks.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install aliyun-mail
  3. After installation, invoke the skill by name or use /aliyun-mail
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug aliyun-mail
Version 1.0.0
License
All-time Installs 4
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 1109 downloads so far.

How do I install Aliyun Mail?

Run "/install aliyun-mail" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Aliyun Mail free?

Yes, Aliyun Mail is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Aliyun Mail support?

Aliyun Mail is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Aliyun Mail?

It is built and maintained by Jixson (@jixsonwang); the current version is v1.0.0.

💬 Comments