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

自定义SMTP发送

技能标识:custom-smtp-sender

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

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

自定义SMTP发送

自定义SMTP发送器

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

功能特性

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

前置条件

  • - SMTP配置文件:位于/home/bb/.openclaw/目录下的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 custom-smtp-sender send --to recipient@example.com --subject Hello --body 你好

发送带附件的HTML邮件:
bash
custom-smtp-sender send \
--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 和 custom-smtp-sender-1776357867 技能

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

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

通过命令行安装

skillhub install custom-smtp-sender-1776357867

下载

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

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

v1.0.0 最新 2026-4-17 16:27
Initial release of custom-smtp-sender:

- Send emails via an existing SMTP configuration file.
- Supports markdown-to-HTML conversion and sending HTML-formatted messages.
- Allows attaching multiple files to emails.
- Implements retry logic for temporary send failures.
- Logs sent messages and errors for auditing and troubleshooting.
返回顶部