Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Send emails via Gmail SMTP using a Python CLI tool with Google App Password for alerts, notifications, and automated reports.
Send emails via Gmail SMTP using a Python CLI tool with Google App Password for alerts, notifications, and automated reports.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Send emails via Gmail SMTP using Google App Password. Generic utility for alerts, notifications, and automated reports.
A simple CLI tool to send emails through Gmail SMTP. No external dependencies beyond Python standard library.
Python 3.6+ Gmail account with App Password enabled
Enable 2-Factor Authentication on your Google Account: Go to https://myaccount.google.com/security Generate an App Password: Go to https://myaccount.google.com/apppasswords Select "Mail" as the app Copy the 16-character password (no spaces) Set environment variables: export GMAIL_USER="your-email@gmail.com" export GMAIL_APP_PASSWORD="xxxxxxxxxxxxxxxx"
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
# Make executable chmod +x gmail-send # Send email ./gmail-send "recipient@example.com" "Subject" "Body text"
# Simple notification ./gmail-send "admin@example.com" "Server Alert" "CPU usage at 90%" # Cron job integration 0 9 * * 1-5 ~/.openclaw/scripts/gmail-send "you@example.com" "Morning Report" "$(date)"
import subprocess # Call from Python subprocess.run([ './gmail-send', 'recipient@example.com', 'Subject', 'Body' ], env={'GMAIL_USER': '...', 'GMAIL_APP_PASSWORD': '...'})
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
"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
MIT
junkaixue
Workflow acceleration for inboxes, docs, calendars, planning, and execution loops.
Largest current source with strong distribution and engagement signals.