返回顶部
a

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,059
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

aliyun-mail

阿里云邮件技能

该技能支持通过阿里云企业邮箱服务发送邮件,具备Markdown转换、HTML样式、文件附件及代码块语法高亮等高级功能。

功能特性

  • - 阿里云企业邮箱支持:针对阿里云SMTP服务(smtp.mxhichina.com)优化
  • 多种内容类型:支持发送纯文本、Markdown或HTML格式邮件
  • 带语法高亮的Markdown:自动为Markdown中的代码块添加语法高亮
  • 文件附件:支持包含一个或多个文件作为附件
  • 基于配置:使用安全配置文件存储SMTP凭据
  • 错误处理:包含重试逻辑和详细错误报告

前置条件

  • - SMTP配置文件:在OpenClaw配置目录(/root/.openclaw/)中创建aliyun-mail-config.json

示例配置文件:
json
{
server: smtp.mxhichina.com,
port: 465,
username: your-email@yourdomain.com,
password: your-app-password,
emailFrom: your-email@yourdomain.com,
useTLS: true
}

确保配置文件具有安全权限:
bash
chmod 600 /root/.openclaw/aliyun-mail-config.json

使用方法

基本文本邮件

bash aliyun-mail send --to recipient@example.com --subject Hello --body 这是一封纯文本邮件

带语法高亮的Markdown邮件

bash aliyun-mail send \ --to recipient@example.com \ --subject 代码报告 \ --body 查看这段Python代码:\n\npython\nprint(Hello World)\n \ --markdown

带附件的HTML邮件

bash aliyun-mail send \ --to recipient@example.com \ --subject 周报 \ --body

周报

请查看附件。

\ --html \ --attachments /path/to/report.pdf

从文件读取正文

bash aliyun-mail send \ --to recipient@example.com \ --subject 来自文件的报告 \ --body-file /path/to/report.md \ --markdown \ --attachments /path/to/data.csv

命令行选项

  • - --to:收件人邮箱地址(必填)
  • --subject:邮件主题(必填)
  • --body:邮件正文内容(未提供--body-file时必填)
  • --body-file:包含邮件正文的文件路径
  • --html:以HTML格式发送邮件(默认:纯文本)
  • --markdown:以带语法高亮的Markdown格式发送邮件
  • --attachments:以空格分隔的附件文件路径列表

错误处理

该工具包含强大的错误处理机制,失败时最多重试3次。网络问题、认证错误和无效邮箱地址都会附带详细错误信息进行报告。

安全注意事项

  • - 始终使用应用专用密码而非主邮箱密码
  • 通过适当的文件权限确保配置文件安全
  • 切勿将配置文件提交到版本控制

未来增强

  • - 支持抄送/密送收件人
  • 邮件模板系统
  • 定时发送邮件
  • 富文本编辑器集成

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 aliyun-mail-1776335175 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 aliyun-mail-1776335175 技能

通过命令行安装

skillhub install aliyun-mail-1776335175

下载

⬇ 下载 aliyun-mail v1.0.0(免费)

文件大小: 6.65 KB | 发布时间: 2026-4-17 14:09

v1.0.0 最新 2026-4-17 14:09
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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部