Skip to main content
The Email interface connects agents to email, polling for new messages via IMAP and sending responses via SMTP.

Quick Start

Features

  • IMAP polling for new messages
  • SMTP sending with TLS
  • Thread tracking via In-Reply-To and References headers
  • Multipart body extraction
  • Session management per email thread

Constructor Reference

str
required
IMAP server hostname.
str
required
SMTP server hostname.
str
required
Email address to monitor.
str
required
Email password or app-specific password.
int
default:"993"
IMAP port (993 for SSL).
int
default:"587"
SMTP port (587 for TLS).
int
default:"30"
Seconds between IMAP polls.

Imports