Gmail Email

Send emails via Gmail SMTP using App Password authentication.

open-gitagent 33a5ba7 2 files · 4.7 KB Updated

File contents

Gmail Email Skill

Send emails via Gmail SMTP.

Setup

  1. Enable 2-Factor Authentication on your Gmail account

  2. Generate App Password:

  3. Configure credentials:

    export GMAIL_USER="your-email@gmail.com"
    export GMAIL_APP_PASSWORD="your-16-char-app-password"
    

    Or create a .env file in the skill directory:

    GMAIL_USER=your-email@gmail.com
    GMAIL_APP_PASSWORD=your-16-char-app-password
    

Usage

python3 scripts/send_email.py \
  --to "recipient@example.com" \
  --subject "Subject line" \
  --body "Email body text"

Requirements

  • Python 3.6+
  • No additional packages needed (uses stdlib smtplib)

open-gitagent/gitagent/tree/main/skills/gmail-email commit 33a5ba7436

Frequently asked questions

npx skillmds@latest add open-gitagent/gmail-email