Skip to main content
EmailTools sends email through Gmail SMTP.

Prerequisites

  1. Enable 2-Step Verification for the sender’s Google Account.
  2. Create a Gmail app password.
  3. 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.
Set the sender, receiver, app password, and model provider API key:

Example

cookbook/91_tools/email_tools.py

Toolkit Params

Toolkit Functions

Developer Resources