Skip to main content

Email Plugin

The email plugin adds SMTP send and IMAP read/search capabilities to the tool graph. Once configured, any agent can send emails, read your inbox, and search messages.


Tools Added

ToolDescription
email_sendSend an email via SMTP
email_readRead a specific message by ID
email_searchSearch inbox with filters
email_listList recent messages from a folder

Configuration

Create ~/.daemi/plugin_config/email.json:

{
"smtp_host": "smtp.gmail.com",
"smtp_port": 587,
"smtp_use_tls": true,
"imap_host": "imap.gmail.com",
"imap_port": 993,
"username": "you@gmail.com",
"password": "your-app-password",
"from_name": "Your Name",
"default_folder": "INBOX"
}

Fields

FieldRequiredDefaultDescription
smtp_hostSMTP server hostname
smtp_portSMTP port (587 for STARTTLS, 465 for SSL)
smtp_use_tlstrueEnable STARTTLS
imap_hostIMAP server hostname
imap_port993IMAP port
usernameEmail address / login
passwordPassword or app-specific password
from_nameusernameDisplay name for sent emails
default_folder"INBOX"Default IMAP folder for read/search

Gmail Setup

Gmail requires an App Password — you cannot use your regular Google account password.

Steps to generate an App Password:

  1. Go to your Google Account
  2. Navigate to Security → 2-Step Verification (must be enabled)
  3. Scroll down to App passwords
  4. Select Mail and your device → Generate
  5. Copy the 16-character password into your config
{
"smtp_host": "smtp.gmail.com",
"smtp_port": 587,
"smtp_use_tls": true,
"imap_host": "imap.gmail.com",
"imap_port": 993,
"username": "you@gmail.com",
"password": "abcd efgh ijkl mnop"
}
tip

Use the app password exactly as Google generates it (with spaces is fine — DAEMI strips them).


Usage

Once configured, agents can send email naturally:

"Send an email to kevin@example.com summarizing today's research findings."

Or via tool call in a workflow step:

{
"tool": "email_send",
"params": {
"to": "kevin@example.com",
"subject": "Research Summary",
"body": "Summary content here"
}
}

Searching email:

"Search my inbox for anything from Anthropic in the last 7 days."

email_search supports:

{
"tool": "email_search",
"params": {
"from": "anthropic.com",
"since": "7d",
"limit": 10
}
}

Other Email Providers

ProviderSMTP HostIMAP HostNotes
Gmailsmtp.gmail.com:587imap.gmail.com:993Requires App Password
Outlook/Hotmailsmtp.office365.com:587outlook.office365.com:993Use account password or OAuth
FastMailsmtp.fastmail.com:587imap.fastmail.com:993App password recommended
Custom/Self-hostedYour serverYour serverDepends on your config

Go Deeper