Overview
Email tool allows you to send emails via SMTP and read emails via IMAP. Supports Gmail, Outlook, and custom SMTP servers.Installation
Environment Variables
Quick Start
Usage with Agent
Available Methods
send(to, subject, body, cc=None, bcc=None)
Send an email.read(folder=“INBOX”, limit=10)
Read emails from a folder.search(query, folder=“INBOX”)
Search emails.Gmail Setup
- Enable 2-Factor Authentication
- Generate App Password at Google Account
- Use App Password as
EMAIL_PASSWORD
Common Errors
| Error | Cause | Solution |
|---|---|---|
Authentication failed | Wrong credentials | Check email/password |
Less secure apps | Gmail security | Use App Password |
Connection refused | Wrong server | Check SMTP/IMAP host |

