← 返回 Skills 市场
76
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install gosmtp
功能描述
Email邮件发送工具
使用说明 (SKILL.md)
Go 邮件发送工具
📦 文件说明
mail_sender.exe- 编译后的可执行文件(5.3MB)main.go- 源代码go.mod- Go 模块定义
⚙️ 环境变量配置
在 Windows PowerShell 中设置:
$env:SMTP_HOST="smtp.qq.com"
$env:SMTP_PORT="587"
$env:SMTP_USERNAME="[email protected]"
$env:SMTP_PASSWORD="wfpjoocjildcbjeh"
$env:FROM_EMAIL="[email protected]"
$env:FROM_NAME="Agent通知系统"
或在 CMD 中:
set SMTP_HOST=smtp.qq.com
set SMTP_PORT=587
set [email protected]
set SMTP_PASSWORD=wfpjoocjildcbjeh
set [email protected]
set FROM_NAME=Agent通知系统
🚀 使用方法
1. 测试 SMTP 连接
cd mail_sender
$env:SMTP_HOST="smtp.qq.com"
$env:SMTP_PORT="587"
$env:SMTP_USERNAME="[email protected]"
$env:SMTP_PASSWORD="wfpjoocjildcbjeh"
./mail_sender.exe
2. 在代码中调用
import "your-module/mail_sender"
config := mail_sender.NewMailConfig()
email := &mail_sender.Email{
To: []string{"[email protected]"},
Subject: "测试邮件",
Body: "\x3Ch1>HTML内容\x3C/h1>",
Files: []string{"attachment.pdf"}, // 可选附件
}
err := email.Send(config)
3. 作为命令行工具
# 直接运行(使用默认配置发送测试邮件)
./mail_sender.exe
# 发送自定义邮件(通过修改代码)
安全使用建议
This appears to be a straightforward SMTP email sender, but there are two issues you should address before installing or running it: (1) the package metadata does not list required environment variables even though the code and docs expect SMTP credentials — treat this as an inconsistency and verify what env vars you must provide; (2) the README/SKILL.md include a plaintext SMTP username and password/authorization-code. Assume that credential is compromised: do not reuse it, do not paste your own real password into examples, and rotate/change any account referenced. Recommended actions: review main.go yourself (or rebuild from source rather than running an unknown mail_sender.exe), remove or replace any hard-coded/sample secrets, update the skill metadata to list required env vars, and supply a dedicated mailbox or app-specific password with minimal privileges. If you cannot verify the origin of the embedded credential, avoid running the prebuilt executable and consider contacting the publisher for clarification.
功能分析
Type: OpenClaw Skill
Name: gosmtp
Version: 1.0.0
The bundle includes a pre-compiled Windows executable (mail_sender.exe) that cannot be verified against the provided Go source code, which is a high-risk practice in agent skills. Both the source code (main.go) and the documentation (SKILL.md/README.md) contain hardcoded SMTP credentials and a hardcoded recipient address ([email protected]), ensuring that any 'test' execution automatically sends a notification to the author. While the visible Go code describes a standard SMTP client, the inclusion of an unverified binary and the 'phone-home' behavior for testing purposes are characteristic of telemetry or potential exfiltration vectors.
能力标签
能力评估
Purpose & Capability
Name/description match an email-sending tool and the Go source implements SMTP sending (STARTTLS, attachments). However the skill metadata declares no required environment variables or primary credential, while both SKILL.md/README and main.go expect SMTP-related environment variables (SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, FROM_EMAIL, FROM_NAME). The omission in metadata is an incoherence.
Instruction Scope
SKILL.md instructs the user to set SMTP environment variables and to run a provided executable or use the Go package; it does not request unrelated files or system info. However the documentation embeds an explicit SMTP_PASSWORD value (plaintext example/credential), which is inappropriate to include and increases risk of credential misuse or leakage.
Install Mechanism
There is no install spec (instruction-only) and the repository includes source (main.go). No remote downloads, installers, or archive extraction are specified, which reduces installation risk. The SKILL.md references a prebuilt mail_sender.exe but no download URL is provided.
Credentials
Requesting SMTP credentials (username/password) is proportionate for an email tool, but the skill metadata failing to list these env vars is inconsistent. More importantly, the README/SKILL.md contain an explicit SMTP_USERNAME and SMTP_PASSWORD example (looks like an authorization code) — this is a sensitive secret in plaintext and should be treated as leaked. The number of env vars is reasonable, but the presence of a real credential is a notable risk.
Persistence & Privilege
The skill does not request persistent or elevated platform privileges; always:false and default autonomous invocation settings are normal. It does not modify other skills or global config according to provided files.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gosmtp - 安装完成后,直接呼叫该 Skill 的名称或使用
/gosmtp触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of gosmtp – an email sending tool.
- Provides a compiled Windows executable and Go source code for sending emails via SMTP.
- Allows configuration via environment variables for SMTP host, port, username, password, sender email, and sender name.
- Supports both command-line invocation and integration within Go code.
- Example use cases and step-by-step setup instructions included in documentation.
元数据
常见问题
Gosmtp 是什么?
Email邮件发送工具. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 76 次。
如何安装 Gosmtp?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gosmtp」即可一键安装,无需额外配置。
Gosmtp 是免费的吗?
是的,Gosmtp 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Gosmtp 支持哪些平台?
Gosmtp 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gosmtp?
由 siysun(@siysun)开发并维护,当前版本 v1.0.0。
推荐 Skills