gmail-email
This skill enables you to send emails directly through Gmail's SMTP servers using secure App Password authentication. Perfect for automating email notifications, alerts, and communications within your applications or workflows without managing complex OAuth flows.
gmail-email enables you to send emails programmatically by connecting to Gmail's SMTP servers with App Password authentication. The skill handles the secure connection setup, allowing you to integrate email functionality directly into your Python scripts or workflows. You'll need to enable 2FA on your Gmail account and generate an App Password, which gmail-email uses to authenticate without exposing your main Gmail password.
AI-generated summary based on this skill's SKILL.md
Install
open-gitagent/gitagent/gmail-email · repository language: TypeScript
git clone https://github.com/open-gitagent/gitagent
cp -r gitagent/skills/gmail-email ~/.claude/skills/gmail-emailFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I send emails through gmail programmatically?
gmail-email enables you to send emails programmatically by connecting to Gmail's SMTP servers with App Password authentication. The skill handles the secure connection setup, allowing you to integrate email functionality directly into your Python scripts or workflows. You'll need to enable 2FA on your Gmail account and generate an App Password, which gmail-email uses to authenticate without exposing your main Gmail password.
What is gmail-email and how does it work as an alternative to the Gmail API?
gmail-email is an MIT-licensed skill that automates email sending through Gmail's SMTP servers without requiring the complexity of Gmail API setup. Instead of managing OAuth flows and API credentials, gmail-email uses straightforward App Password authentication. This makes it ideal for developers who want to send automated email notifications, alerts, and communications from their applications with minimal configuration overhead.
How do I set up gmail-email with Gmail 2FA and App Password authentication?
To use gmail-email, first enable two-factor authentication (2FA) on your Gmail account through your Google Account settings. Once 2FA is active, generate an App Password from your Google Account security page—this creates a unique 16-character password specifically for gmail-email. Configure gmail-email with your Gmail address and the App Password, and it will securely connect to Gmail's SMTP servers for sending emails.
Can gmail-email send bulk or batch emails from my personal Gmail account?
Yes, gmail-email supports sending bulk or batch emails through your personal Gmail account. The skill integrates with Gmail's SMTP infrastructure, allowing you to automate the sending of multiple emails within your scripts or workflows. Keep in mind that Gmail has rate limits for SMTP connections, so gmail-email is best suited for moderate-volume automated email sending rather than extremely high-volume campaigns.
How do I integrate gmail-email into my Python scripts or workflows?
gmail-email integrates seamlessly into Python scripts and automation workflows by providing SMTP-based email sending functionality. Once you've configured your Gmail credentials and App Password, you can use gmail-email within your Python code to send email notifications, alerts, and communications. This makes it perfect for automating email functionality in applications, scheduled tasks, or event-driven workflows without managing complex API authentication.
What are the advantages of using gmail-email over setting up Gmail SMTP manually?
gmail-email simplifies Gmail SMTP setup by handling authentication, connection management, and best practices for you. Rather than manually configuring SMTP parameters and troubleshooting connection issues, gmail-email abstracts these details away. The skill is specifically designed for App Password authentication with 2FA, ensuring your Gmail account remains secure while making email automation straightforward and reliable for your applications.
SKILL.md
rendered from the published skill — quoted content, verbatim
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:
bash 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)
Read as markdown · JSON record · Browse the source repository
File tree — 2 files
skills/gmail-email/SKILL.md
skills/gmail-email/scripts/send_email.py