Install
openclaw skills install gmail-senderSend emails via Gmail SMTP using a Python CLI tool with Google App Password for alerts, notifications, and automated reports.
openclaw skills install gmail-senderSend 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.
Enable 2-Factor Authentication on your Google Account:
Generate an App Password:
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': '...'})
"535 5.7.8 Username and Password not accepted"
"Could not connect"
MIT
junkaixue