Useful ToolsAgent Emails
DocsAgent Emails

Agent Emails

New

Send and receive emails with simple functions. No config, no complexity.

Quick Start

quickstart.py
from connectonion import send_email, get_emails # Send an email send_email("alice@example.com", "Hello!", "Welcome to our platform") # Read your emails emails = get_emails(unread=True) for email in emails: print(f"{email['from']}: {email['subject']}")

Two Capabilities

All Functions

functions.py
# Sending (via OpenOnion - zero config) send_email(to, subject, message) # Send an email # Receiving (via IMAP - any provider) get_emails(last=10, unread=False) # Get emails from inbox mark_read(email_id) # Mark as read mark_unread(email_id) # Mark as unread

Agent Emails vs Gmail

Agent Emails (This page)

  • Simple functions: send_email, get_emails
  • Works with any email provider (IMAP)
  • Zero config for sending (OpenOnion)
  • Best for simple automation

Gmail (OAuth)

  • Full Gmail class with 15+ methods
  • Labels, archive, star, trash
  • Advanced search & CRM features
  • Best for Gmail power users

Need more features? Check out Gmail for full inbox management.

Star us on GitHub

If ConnectOnion saves you time, a ⭐ goes a long way — and earns you a coffee chat with our founder.