← 返回 Skills 市场
craftslab

gomail

作者 Jia · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
294
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install gomail
功能描述
Send emails via the gomail sender CLI with attachments, templates, and recipient management. Use when sending or testing email delivery from OpenClaw.
使用说明 (SKILL.md)

gomail Skill (OpenClaw)

Use the gomail sender CLI to send emails (with optional attachments and templates) from OpenClaw. This skill wraps the prebuilt Linux sender binary from the gomail project and exposes its flags as structured parameters.

Installation

Download the latest prebuilt Linux AMD64 release that contains the sender binary:

# From a directory on your PATH or the skill directory
LATEST_URL=$(curl -sL -o /dev/null -w '%{url_effective}' https://github.com/craftslab/gomail/releases/latest)
VERSION=${LATEST_URL##*/}          # e.g. v2.7.2
VERSION_NO_V=${VERSION#v}         # e.g. 2.7.2

# Note: the release tag includes a leading "v", but the tarball filename does not.
wget "https://github.com/craftslab/gomail/releases/download/${VERSION}/gomail_${VERSION_NO_V}_linux_amd64.tar.gz"
tar -xf "gomail_${VERSION_NO_V}_linux_amd64.tar.gz"

# Ensure the binaries are executable
chmod +x sender parser
  • Recommended: Place sender on your PATH (e.g. /usr/local/bin/sender) or keep it in the gomail skill directory and invoke it with ./sender.
  • This skill assumes a Linux environment compatible with the gomail Linux AMD64 builds.

Configuration

The sender tool reads mail server and sender configuration from a JSON file passed via --config. This skill includes a starter config template at sender.json (in the gomail skill directory). It includes:

  • SMTP server settings (host, port, TLS, auth)
  • Authentication credentials
  • A sender email address (the actual From address)

For OpenClaw, you can:

  • Use the bundled config template in the gomail skill directory, sender.json (recommended).
  • Or point --config to any other JSON file you manage.

Important: skill/sender.json is a template. Replace the placeholder values with real SMTP credentials and keep secrets out of source control.

Important: The --header flag only controls the human‑readable display name. The actual From email address is read from the sender field in the config file, as described in the gomail README.

Parameters (CLI)

This skill uses the sender command exactly as documented in the gomail README:

usage: sender --recipients=RECIPIENTS [\x3Cflags>]
Argument / Flag Required Description
--config / -c Path to config JSON file, e.g. sender.json. Defines SMTP/server settings and the actual sender address.
--recipients / -p Recipients list, format: [email protected],cc:[email protected]. Supports cc: prefix for CC recipients.
--attachment / -a Comma‑separated attachment files, e.g. attach1.txt,attach2.txt. Paths are resolved relative to the working directory.
--body / -b Body text or path to a body file, e.g. body.txt.
--content_type / -e Content type: HTML or PLAIN_TEXT (default).
--header / -r Sender display name, combined with sender from config to form the From header (e.g. "Your Name" \[email protected]>).
--title / -t Subject/title text for the email.
--dry-run / -n If set, only outputs recipient validation JSON and exits; does not send the email.
--help Show help.
--version Show application version.

Basic usage

From inside the gomail skill directory (with a bundled config and body file):

./sender \
  --config="sender.json" \
  --attachment="attach1.txt,attach2.txt" \
  --body="body.txt" \
  --content_type="PLAIN_TEXT" \
  --header="Your Name" \
  --recipients="[email protected],[email protected],cc:[email protected]" \
  --title="TITLE"

When integrated in OpenClaw, construct the command with the appropriate flags based on user input. Use --dry-run during testing or when you only need to validate recipients without sending mail:

sender \
  --config="sender.json" \
  --recipients="[email protected]" \
  --dry-run

When to use

  • Send email: When the user asks to send an email, notification, or message (optionally with attachments) via SMTP.
  • Validate recipients: When the user wants to validate or preview recipients without sending (use --dry-run).
  • gomail specific: When the user mentions gomail, gomail sender, or wants to use the gomail CLI for mail delivery from OpenClaw.
安全使用建议
Before installing or running this skill: 1) Treat the SKILL.md download step as installing arbitrary native code — prefer to manually download, verify, and pin a specific release (and check checksums/signatures) rather than following an automated 'latest' redirect. 2) Review the upstream project (craftslab/gomail) and its releases to ensure trustworthiness. 3) Avoid placing high-privilege credentials in repository files; use a secrets manager or ephemeral/test SMTP credentials. 4) When testing, use --dry-run and restrict attachments to non-sensitive test files; consider running the binary in an isolated/test environment or container. 5) If you cannot verify the binary or prefer lower risk, consider integrating with a known SMTP client library or a well-reviewed managed mail API instead of downloading and executing a remote binary.
功能分析
Type: OpenClaw Skill Name: gomail Version: 0.1.0 The gomail skill provides a wrapper for a CLI tool to send emails with attachments via SMTP. It exhibits high-risk behaviors including an installation process in SKILL.md that downloads and executes a remote binary from GitHub (wget/chmod +x) and the capability to read arbitrary local files for use as email attachments. While these functions are aligned with the tool's stated purpose, they provide a significant mechanism for data exfiltration and supply chain risk if the agent is compromised or misused.
能力评估
Purpose & Capability
Name and description match the instructions: the skill wraps the gomail 'sender' CLI to send mail, attachments, and validate recipients. Requiring a sender binary and a config file with SMTP settings is coherent with this purpose.
Instruction Scope
The SKILL.md explicitly instructs the agent/operator to download a prebuilt binary (via GitHub release redirect), extract it, mark it executable, and optionally place it on PATH. It also instructs use of a local JSON config containing SMTP credentials and resolves attachments relative to the working directory (which implies the agent or invoker may read local files). These actions are within the declared goal (sending mail) but broaden the attack surface (remote binary execution, local file access for attachments/config).
Install Mechanism
There is no formal install spec, but the SKILL.md instructs downloading and extracting a tarball from a GitHub releases 'latest' redirect and running the contained binary. Downloading and executing remote binaries (even from GitHub releases) without pinning a version, checksum, or signature is a higher-risk pattern and should be treated cautiously.
Credentials
The skill declares no required env vars, and instead relies on a local JSON config file for SMTP credentials. That is proportionate to sending email, but the skill does not declare or protect those secrets and may cause credentials or local files (attachments) to be transmitted over SMTP. No unrelated credentials are requested.
Persistence & Privilege
The skill does not request permanent 'always' presence and does not declare changes to other skills or system-wide settings. Autonomous invocation is allowed (platform default) but not combined with other high-privilege requests.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gomail
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gomail 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of the gomail skill for OpenClaw. - Send emails via the prebuilt gomail sender CLI, supporting attachments and templates. - Manage recipients, including support for CC addresses. - Configure mail server and sender details through an external JSON config file. - Validate recipients without sending emails using the --dry-run flag. - Includes installation and usage instructions tailored for Linux AMD64 environments.
元数据
Slug gomail
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

gomail 是什么?

Send emails via the gomail sender CLI with attachments, templates, and recipient management. Use when sending or testing email delivery from OpenClaw. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 294 次。

如何安装 gomail?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gomail」即可一键安装,无需额外配置。

gomail 是免费的吗?

是的,gomail 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

gomail 支持哪些平台?

gomail 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 gomail?

由 Jia(@craftslab)开发并维护,当前版本 v0.1.0。

💬 留言讨论