Gmail Sender Skill for Openclaw

A lightweight CLI utility for sending automated emails via Gmail SMTP using Google App Passwords.

junkaixue
v1.0.0
Feb 24, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gmail-sender

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gmail-sender using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Gmail Sender Skill?

The Gmail Sender Skill is a streamlined automation tool designed for developers and power users who need a reliable way to dispatch emails directly from their Openclaw Skills environment. By leveraging the Python standard library and Google secure App Passwords, it provides a dependency-free method to integrate email notifications into scripts, workflows, and cron jobs.

This skill serves as a foundational component for building complex Openclaw Skills that require outbound communication capabilities. It ensures that status updates, system alerts, and automated reports reach their destination without the overhead of external third-party API integrations, keeping your automation stack lean and efficient.

Gmail Sender Skill Use Cases

  • Automated server health alerts and high CPU usage notifications.
  • Sending scheduled morning reports or daily summaries via cron jobs.
  • Integrating email dispatch functionality into custom Openclaw Skills workflows.
  • Notifying administrators of successful script completions or failures in long-running processes.

How Gmail Sender Skill Works

  1. The user configures their Google Account with 2-Factor Authentication and generates a dedicated 16-character App Password.
  2. Environment variables are set to securely store credentials locally without hardcoding them into the skill scripts.
  3. The Gmail Sender script establishes a secure SMTP connection to Google servers using the provided environment variables.
  4. The skill accepts command-line arguments for the recipient email address, subject line, and message body.
  5. It transmits the email and provides feedback or error codes based on the SMTP server response.

Gmail Sender Skill Setup

  1. Enable 2-Factor Authentication on your Google Account and generate a 16-character App Password.
  2. Install the skill using the CLI:
clawhub install gmail-sender
  1. Set the necessary environment variables in your shell profile:
export GMAIL_USER="[email protected]"
export GMAIL_APP_PASSWORD="xxxxxxxxxxxxxxxx"
  1. Make the script executable:
chmod +x gmail-send

Gmail Sender Skill Data Schema & Taxonomy

The Gmail Sender Skill operates as a stateless utility, processing input parameters to generate standard MIME emails. It does not store persistent data locally, relying instead on environment variables for configuration.

Parameter Source Description
Recipient CLI Argument The destination email address
Subject CLI Argument The subject line for the outgoing email
Body CLI Argument The plain text content of the message
GMAIL_USER Environment Your authenticated Gmail address
GMAIL_APP_PASSWORD Environment The 16-character secure token

Gmail Sender Skill Advanced Features

  • Seamless integration with Unix cron jobs for automated scheduled reporting within Openclaw Skills.
  • Support for Python subprocess calls, allowing other agents to trigger emails programmatically.
  • Dependency-free architecture ensuring high performance and compatibility across various Python 3 environments.
  • Security-centric design that prioritizes environment variables to prevent credential leakage in version control.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*