← Back to Skills Marketplace
76
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install gosmtp
Description
Email邮件发送工具
README (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
# 发送自定义邮件(通过修改代码)
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gosmtp - After installation, invoke the skill by name or use
/gosmtp - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Gosmtp?
Email邮件发送工具. It is an AI Agent Skill for Claude Code / OpenClaw, with 76 downloads so far.
How do I install Gosmtp?
Run "/install gosmtp" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Gosmtp free?
Yes, Gosmtp is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Gosmtp support?
Gosmtp is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Gosmtp?
It is built and maintained by siysun (@siysun); the current version is v1.0.0.
More Skills