Gmail Email
Apps & Automationgmail-emailGmail Email is an Agent Skill for apps & automation published in the open-gitagent/gitagent repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Send emails via Gmail SMTP using App Password authentication.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/open-gitagent/gitagent/blob/HEAD/skills/gmail-email/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/gmail-email, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Gmail Email Skill
Send emails via Gmail SMTP.
Setup
-
Enable 2-Factor Authentication on your Gmail account
-
Generate App Password:
- Go to https://myaccount.google.com/apppasswords
- Sign in to your Google account
- Select "Mail" and your device
- Generate password and save it
-
Configure credentials:
export GMAIL_USER="[email protected]" export GMAIL_APP_PASSWORD="your-16-char-app-password"Or create a
.envfile in the skill directory:[email protected] GMAIL_APP_PASSWORD=your-16-char-app-password
Usage
python3 scripts/send_email.py \
--to "[email protected]" \
--subject "Subject line" \
--body "Email body text"
Requirements
- Python 3.6+
- No additional packages needed (uses stdlib smtplib)