返回顶部
c

custom-smtp-sender自定义SMTP发送

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,676
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

custom-smtp-sender

自定义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.

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

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

p2p_official_large
返回顶部