Email (IMAP) Connector

Connect Zenmako to your email account via IMAP and SMTP to read, search, organize, and send emails. This enables AI to check your inbox, summarize unread messages, reply to emails, and manage folders.

Getting Your Credentials

The Email IMAP connector requires your email login credentials plus server settings. Most email providers require an app password instead of your regular password.

Required Information

FieldDescription
UsernameYour full email address (e.g., you@gmail.com)
PasswordYour email password or app-specific password
IMAP HostIMAP server address (e.g., imap.gmail.com)
IMAP PortIMAP port number (usually 993 for SSL/TLS)
SMTP HostSMTP server address (e.g., smtp.gmail.com)
SMTP PortSMTP port number (usually 587 for STARTTLS)

App Passwords

Most email providers with two-factor authentication require an app password. Here is how to generate one:

Gmail:
  • Go to https://myaccount.google.com/apppasswords
  • Sign in if prompted
  • Select "Mail" for the app and your device type
  • Click "Generate"
  • Copy the 16-character password (use this instead of your regular password)
  • Outlook/Microsoft 365:
  • Go to https://account.microsoft.com/security
  • Select "Advanced security options"
  • Under "App passwords", click "Create a new app password"
  • Copy the generated password
  • Yahoo:
  • Go to https://login.yahoo.com/account/security
  • Click "Generate app password"
  • Select "Other App" and enter "Zenmako"
  • Copy the generated password
  • Common Server Settings

    ProviderIMAP HostIMAP PortSMTP HostSMTP Port
    Gmailimap.gmail.com993smtp.gmail.com587
    Outlook/Hotmailoutlook.office365.com993smtp.office365.com587
    Yahooimap.mail.yahoo.com993smtp.mail.yahoo.com587
    iCloudimap.mail.me.com993smtp.mail.me.com587
    Fastmailimap.fastmail.com993smtp.fastmail.com587

    Connecting Email

  • Navigate to the Connections page in Zenmako
  • Click Add Connection and select Email (IMAP)
  • Enter your credentials:
  • - Username: Your full email address - Password: Your app password (or regular password if app passwords are not required) - IMAP Host: Your email provider's IMAP server address - IMAP Port: 993 (default for secure connections) - SMTP Host: Your email provider's SMTP server address - SMTP Port: 587 (default for STARTTLS) - TLS: Leave enabled for secure connections (recommended)
  • Click Save
  • Click Test Connection to verify the setup works
  • If the test succeeds, your email connection is ready to use.

    Available Actions

    ActionDescription
    getUnreadSummaryGet a summary of unread emails with count by sender and subjects
    searchEmailsByCriteriaSearch emails by sender, subject, date range, or unread status
    getEmailForReplyGet email details formatted for replying (includes body, headers, and context)
    composeReplyCompose and send a reply email with proper headers and threading
    sendEmailWithDraftCheckSend an email, using an existing draft if one is available
    bulkMoveEmailsMove multiple emails to a folder in a single operation
    listFoldersList all available IMAP folders in the mailbox
    createFolderCreate a new email folder (idempotent - safe to call if folder already exists)

    Example Prompts

    Try these prompts to interact with your email:

  • "How many unread emails do I have? Summarize them by sender."
  • "Find all emails from john@example.com in the last week"
  • "Search for unread emails with 'invoice' in the subject"
  • "Reply to the email from Sarah about the meeting with: Thanks, I will be there at 3pm"
  • "Move all newsletters to a folder called 'Newsletters'"
  • "Show me my email folders"
  • Common Issues

    "Authentication failed" or "Invalid credentials" error

    This usually means your password is incorrect or you need an app password. Solutions:

  • If you use two-factor authentication, generate an app password (see instructions above)
  • Verify you copied the password without extra spaces
  • For Gmail, ensure "Less secure app access" is enabled if you are not using an app password (not recommended)
  • For Gmail, check that IMAP is enabled in Gmail Settings under "Forwarding and POP/IMAP"
  • "Connection refused" or "Cannot connect to server" error

    This indicates the server settings are incorrect or the connection is blocked. Solutions:

  • Verify the IMAP and SMTP host addresses are correct for your email provider
  • Check that you are using the correct port numbers (993 for IMAP, 587 for SMTP)
  • Ensure TLS is enabled if your provider requires secure connections
  • If on a corporate network, check if IMAP/SMTP ports are blocked by a firewall