← Back to Skills Marketplace
junkaixue

Gmail Sender

by Junkai Xue · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
637
Downloads
0
Stars
5
Active Installs
1
Versions
Install in OpenClaw
/install gmail-sender
Description
Send emails via Gmail SMTP using a Python CLI tool with Google App Password for alerts, notifications, and automated reports.
README (SKILL.md)

Gmail Sender Skill

Send emails via Gmail SMTP using Google App Password. Generic utility for alerts, notifications, and automated reports.

Overview

A simple CLI tool to send emails through Gmail SMTP. No external dependencies beyond Python standard library.

Requirements

  • Python 3.6+
  • Gmail account with App Password enabled

Setup

  1. Enable 2-Factor Authentication on your Google Account:

  2. Generate an App Password:

  3. Set environment variables:

export GMAIL_USER="[email protected]"
export GMAIL_APP_PASSWORD="xxxxxxxxxxxxxxxx"

Installation

Clone or copy this skill to your OpenClaw skills directory:

cp -r gmail-sender ~/.openclaw/workspace/skills/

Or use the CLI:

clawhub install gmail-sender

Usage

# Make executable
chmod +x gmail-send

# Send email
./gmail-send "[email protected]" "Subject" "Body text"

Examples

# Simple notification
./gmail-send "[email protected]" "Server Alert" "CPU usage at 90%"

# Cron job integration
0 9 * * 1-5 ~/.openclaw/scripts/gmail-send "[email protected]" "Morning Report" "$(date)"

Python Module Usage

import subprocess

# Call from Python
subprocess.run([
    './gmail-send',
    '[email protected]',
    'Subject',
    'Body'
], env={'GMAIL_USER': '...', 'GMAIL_APP_PASSWORD': '...'})

Security Notes

  • Never commit App Passwords to version control
  • Use environment variables, never hardcode credentials
  • App Passwords are 16 characters (format: xxxx xxxx xxxx xxxx)
  • Revoke app passwords if compromised

Troubleshooting

"535 5.7.8 Username and Password not accepted"

  • Verify App Password is correct (16 chars, no spaces)
  • Make sure 2FA is enabled on your Google account

"Could not connect"

  • Check firewall/network settings
  • Gmail may block connections from unknown apps

License

MIT

Author

junkaixue

Usage Guidance
Do not install or provide your Gmail App Password until you can inspect the actual code for 'gmail-send'. Ask the publisher for the missing script/source and for corrected metadata that declares the required env vars. When you do review code, check how credentials are read and transmitted (ensure TLS is used and credentials are not logged or exfiltrated). Prefer using a dedicated Google account or OAuth with limited scope rather than a primary personal account App Password. If the publisher cannot provide the executable/source, treat the package as incomplete and avoid supplying secrets.
Capability Analysis
Type: OpenClaw Skill Name: gmail-sender Version: 1.0.0 The skill bundle describes a Gmail sender utility. The `SKILL.md` provides clear instructions for setup and usage, emphasizing secure handling of credentials via environment variables and explicitly warning against hardcoding or committing App Passwords. There is no evidence of malicious intent, data exfiltration, unauthorized execution, or prompt injection attempts against the AI agent. The content is straightforward and aligns with the stated purpose of a utility tool.
Capability Assessment
Purpose & Capability
The SKILL.md describes a Python CLI named 'gmail-send' and explains how to set GMAIL_USER and GMAIL_APP_PASSWORD, but the skill bundle contains no script, module, or binary implementing that functionality. The registry metadata also lists no required environment variables or primary credential even though the instructions require a sensitive App Password. These inconsistencies mean the package as provided cannot perform its claimed purpose and the manifest doesn't match the runtime instructions.
Instruction Scope
Instructions direct the agent/user to set environment variables containing credentials and to execute './gmail-send' (including via cron and from subprocess.run). The instructions do not ask for unrelated files or secrets, but they assume the presence of an executable that is not included. That gap is a scope/integrity problem: the runtime behavior is undefined without the missing artifact. Otherwise the instruction steps are focused on the stated task.
Install Mechanism
There is no install specification (instruction-only). That reduces risk from automatic downloads, but also means required code must be present in the skill bundle — which it is not. Because no install occurs, there is no immediate write/execute risk from an installer, but the lack of included code is a practical problem.
Credentials
The instructions require GMAIL_USER and GMAIL_APP_PASSWORD (sensitive credentials). However, the skill metadata declares no required env vars or primary credential. Requesting a Google App Password is proportionate to sending mail, but the mismatch between declared and actual required env vars is a red flag. Users should confirm how credentials are used by reviewing the actual code before supplying secrets.
Persistence & Privilege
The skill is not always:true, does not request system-wide config changes, and contains no install hooks. There is no evidence it requests persistent elevated privileges or modifies other skills. This dimension appears acceptable.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gmail-sender
  3. After installation, invoke the skill by name or use /gmail-sender
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release: Send emails via Gmail SMTP using a Google App Password. - Simple CLI tool for sending alerts, notifications, and automated reports. - Requires no external dependencies beyond Python standard library. - Step-by-step setup instructions included (2FA, App Password, env vars). - Supports direct CLI and subprocess usage from Python. - Security, troubleshooting, and installation guidance provided.
Metadata
Slug gmail-sender
Version 1.0.0
License
All-time Installs 5
Active Installs 5
Total Versions 1
Frequently Asked Questions

What is Gmail Sender?

Send emails via Gmail SMTP using a Python CLI tool with Google App Password for alerts, notifications, and automated reports. It is an AI Agent Skill for Claude Code / OpenClaw, with 637 downloads so far.

How do I install Gmail Sender?

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

Is Gmail Sender free?

Yes, Gmail Sender is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Gmail Sender support?

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

Who created Gmail Sender?

It is built and maintained by Junkai Xue (@junkaixue); the current version is v1.0.0.

💬 Comments