Skip to content
Back to skills

Gmail Sender

ASecurity

Send emails via Gmail SMTP using Google App Password. Generic

  • 21 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 7, 2026
securitypythongobashsecurity

Works with

  • cli

Security analysis

A100/100

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill gmail-sender --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gmail Sender?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gmail Sender
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-gmail-sender/badge)](https://www.skillsdirectory.com/skills/modbender-gmail-sender)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Gmail Sender Skill
description: Send emails via Gmail SMTP using Google App Password. Generic
  utility for alerts, notifications, and automated reports.
---

# 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:
   - Go to https://myaccount.google.com/security

2. Generate an App Password:
   - Go to https://myaccount.google.com/apppasswords
   - Select "Mail" as the app
   - Copy the 16-character password (no spaces)

3. Set environment variables:
```bash
export GMAIL_USER="your-email@gmail.com"
export GMAIL_APP_PASSWORD="xxxxxxxxxxxxxxxx"
```

## Installation

Clone or copy this skill to your OpenClaw skills directory:
```bash
cp -r gmail-sender ~/.openclaw/workspace/skills/
```

Or use the CLI:
```bash
clawhub install gmail-sender
```

## Usage

```bash
# Make executable
chmod +x gmail-send

# Send email
./gmail-send "recipient@example.com" "Subject" "Body text"
```

### Examples

```bash
# 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)"
```

## Python Module Usage

```python
import subprocess

# Call from Python
subprocess.run([
    './gmail-send',
    'recipient@example.com',
    '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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.