闲社服务运行正常AI智能体自动化平台
s

SMTP邮件发送

技能标识:smtp-sender

A skill to send emails with support for markdown, HTML text, and attachments, leveraging existing SMTP configuration in `{skill~}/smtp-config.json`. Includes retry logic and logging.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.2
检测标记
后台标记通过
免费
免费获取
1
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

SMTP邮件发送

自定义SMTP发送器

用于发送电子邮件的自定义技能,支持HTML/Markdown转换、附件和重试处理等高级选项。集成了现有配置,确保安全可靠的操作。

功能特性

  • - HTML/Markdown支持:使用Markdown编写邮件并转换为HTML格式。
  • 附件功能:轻松包含一个或多个文件。
  • 重试机制:在临时故障时尝试重新发送。
  • 日志记录:维护已发送邮件和错误的日志,便于审计。

前提条件

  • - SMTP配置文件:位于~skill/smtp-config.json的smtp-config.json文件

示例:
json
{
server: smtp.exmail.qq.com,
port: 465,
username: your-email@example.com,
password: your-password,
emailFrom: your-email@example.com,
useTLS: true
}

确保文件权限已设置安全(chmod 600)。

使用方法

发送基本邮件: bash python3 ~/.openclaw/workspace/skills/smtp-sender/email_sender.py --to recipient@example.com --subject Hello --body 你好

发送带附件的HTML邮件:
bash
python3 ~/.openclaw/workspace/skills/smtp-sender/email_sender.py \
--to recipient@example.com \
--subject Weekly Report \
--body Important updates inside. See attached. \
--html \
--attachments path/to/file.pdf

错误处理

该工具在失败时会重试最多3次,并记录每次尝试。网络或凭证问题将详细报告。

未来扩展

  • - 支持抄送/密送字段
  • 邮件定时发送(cron集成)
  • 邮件模板

只需设置一次SMTP服务,即可将电子邮件集成到您的工作流程中!

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 smtp-sender-1776290009 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 smtp-sender-1776290009 技能

通过命令行安装

skillhub install smtp-sender-1776290009

下载

⬇ 下载 smtp-sender v1.0.2(免费)

文件大小: 2.9 KB | 发布时间: 2026-4-16 17:22

v1.0.2 最新 2026-4-16 17:22
- Added smtp-config.example.json to provide a reference SMTP configuration file.
- Removed sample and metadata files: .clawhub/origin.json, _meta.json, and smtp-config.json.
- No changes to functionality; configuration and documentation remain the same.
返回顶部