← 返回 Skills 市场
junkaixue

Gmail Sender

作者 Junkai Xue · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
637
总下载
0
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install gmail-sender
功能描述
Send emails via Gmail SMTP using a Python CLI tool with Google App Password for alerts, notifications, and automated reports.
使用说明 (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

安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gmail-sender
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gmail-sender 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug gmail-sender
版本 1.0.0
许可证
累计安装 5
当前安装数 5
历史版本数 1
常见问题

Gmail Sender 是什么?

Send emails via Gmail SMTP using a Python CLI tool with Google App Password for alerts, notifications, and automated reports. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 637 次。

如何安装 Gmail Sender?

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

Gmail Sender 是免费的吗?

是的,Gmail Sender 完全免费(开源免费),可自由下载、安装和使用。

Gmail Sender 支持哪些平台?

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

谁开发了 Gmail Sender?

由 Junkai Xue(@junkaixue)开发并维护,当前版本 v1.0.0。

💬 留言讨论