EmailTools sends email through Gmail SMTP.
Prerequisites
- Enable 2-Step Verification for the sender’s Google Account.
- Create a Gmail app password.
- Install Agno and the OpenAI client:
This example requires a Google Account that supports app passwords. Google may withhold app passwords from work, school, or organization accounts, security-key-only 2-Step Verification accounts, and accounts enrolled in Advanced Protection.
Example
cookbook/91_tools/email_tools.py