← Back to Skills Marketplace
craftslab

gomail

by Jia · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
294
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install gomail
Description
Send emails via the gomail sender CLI with attachments, templates, and recipient management. Use when sending or testing email delivery from OpenClaw.
README (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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gomail
  3. After installation, invoke the skill by name or use /gomail
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug gomail
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is gomail?

Send emails via the gomail sender CLI with attachments, templates, and recipient management. Use when sending or testing email delivery from OpenClaw. It is an AI Agent Skill for Claude Code / OpenClaw, with 294 downloads so far.

How do I install gomail?

Run "/install gomail" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is gomail free?

Yes, gomail is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does gomail support?

gomail is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created gomail?

It is built and maintained by Jia (@craftslab); the current version is v0.1.0.

💬 Comments