Command
nylas email send
The nylas email send command sends an email through Gmail, Outlook, Exchange, Yahoo, iCloud, or any IMAP server from your terminal. It supports scheduling with natural language expressions (e.g., 2h, tomorrow 9am), GPG signing and encryption via RFC 3156 PGP/MIME, and open/click tracking with webhook delivery. Use --yes to skip confirmation for scripting and agent automation.
Usage
nylas email send --to EMAIL --subject SUBJECT --body BODY [options]Flags
| Flag | Description |
|---|---|
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --to | Recipient email address |
| --cc | CC recipients |
| --bcc | BCC recipients |
| --subject | Email subject |
| --body | Email body (plain text) |
| --schedule | Schedule send (e.g. 2h, tomorrow 9am) |
| --sign | Sign with GPG |
| --encrypt | Encrypt with recipient's GPG key |
| --track-opens | Track email opens |
| --track-links | Track link clicks |
| --metadata | Custom key=value metadata (repeatable) |
Examples
Basic send
nylas email send --to user@example.com --subject "Quick note" --body "Hello!" --yesSchedule for later
nylas email send --to team@company.com --subject "Reminder" --body "..." --schedule 2hGPG signed and encrypted
nylas email send --to legal@partner.com --subject "Contract" --body "..." --sign --encryptTroubleshooting
Send fails with auth error
Run nylas auth config and nylas auth login to connect an account.
GPG encrypt fails
Ensure recipient has a public key. Use nylas email send --list-gpg-keys to verify your keys.
Recommended guides
Build an AI Email Triage Agent
Build an AI agent that reads your inbox, classifies emails by urgency, drafts replies, and archives noise. Python + Nylas CLI + any LLM.
Nylas CLI vs Recall.ai for AI Agent Email
Compare Nylas CLI and Recall.ai for AI agent email access. One handles email and calendar, the other handles meeting recordings. Pick the right tool.
Email APIs for AI Agents Compared
Compare Gmail API, Microsoft Graph, SendGrid, Mailgun, Nylas, and direct IMAP for giving AI agents email access. Feature table included.
Send iCloud Mail from the CLI
Send iCloud Mail from terminal without SMTP config or app-specific passwords. Works with @icloud.com, custom domains, and Hide My Email aliases.
Send Outlook Email from the CLI
Send Outlook and Microsoft 365 email from the command line. Skip Graph API setup and Azure AD registration. OAuth2 and attachments handled automatically.
Send Yahoo Mail from the CLI
Send Yahoo Mail from terminal without SMTP config or app passwords. Nylas CLI handles OAuth2 so you skip smtp.mail.yahoo.com setup entirely.
Receive Email Without an SMTP Server
Create a managed email address and process incoming messages via webhooks — no Postfix, no MX records. nylas inbound works with Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.
Extract OTP Codes from Email — Skip the Inbox
Pull 2FA verification codes from email without opening your inbox. nylas otp get copies the code to your clipboard. Works with Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.
Give Your AI Coding Agent an Email Address
Connect Claude Code, Cursor, OpenAI Codex CLI, Windsurf, and OpenClaw to a real email account via MCP. Step-by-step setup for each tool using Nylas CLI.
manus-mcp-cli: Email and Calendar MCP for Manus
Configure manus-mcp-cli to register MCP servers, send email, set up Gmail and Yahoo providers, and connect Nylas CLI as an MCP server for Manus AI.
How to Send Email from the Manus AI Sandbox
Send email from the Manus AI sandbox using Nylas CLI. Install in one command, authenticate with the Nylas API, and send to any external address.
Draft Personalized Emails with Manus AI
Use Manus AI to draft personalized emails at scale with Nylas CLI. Feed a contact list, review AI-generated drafts, then send in one command.
Sync Email to CRM with Manus AI
Use Manus AI and Nylas CLI to extract contacts from your inbox, enrich them, and sync to Salesforce, HubSpot, or Pipedrive. No code, no manual data entry.
Email Analytics with Manus AI
Analyze email patterns with Manus AI and Nylas CLI — volume by sender, response times, busiest hours, unread trends, and weekly reports.
Manus AI Email Research Agent
Use Manus AI to deep-search your inbox, summarize email threads, extract decisions, and compile research — all powered by Nylas CLI email commands.
Automate Email with Manus AI: Beginner Guide
Get started with Manus AI and Nylas CLI in five minutes. Send your first email, read your inbox, and search messages — all through natural language prompts.
Manus AI vs Claude Code for Email Automation
Side-by-side comparison of Manus AI Skills and Claude Code MCP for email and calendar automation. Same Nylas CLI commands, different agent runtimes.
Build an Email Support Agent with Manus AI
Build a no-code email support agent with Manus AI and Nylas CLI. Poll your inbox, match against a knowledge base, draft replies, and send with human approval.
Manus AI Inbox Zero with Nylas CLI
Reach inbox zero with Manus AI. Triage unread email, categorize by urgency, draft replies, and archive — all via natural language and Nylas CLI.
Mail Manus: Automate Email with Nylas CLI
Mail Manus forwards emails to your Manus agent for action. Add the Nylas CLI Skill for multi-provider inbox access, smart compose, calendar, and search.
Export Email Data to Dynamics 365
Sync inbox data to Dynamics 365 Contacts, Accounts, and Activities. Map fields, import via CSV or Web API, and schedule syncs from the CLI.
Automate Email Draft Creation with Review Workflows
Generate pre-filled email drafts from templates with conditional logic. Batch-create follow-ups, route drafts for review, and schedule approved sends.
Build Shell-Integrated Email Autocomplete
Build a fuzzy email autocomplete for bash, zsh, and fish shells. Use fzf, rapidfuzz, or Fuse.js with contact frequency ranking and keybindings.
Visualize Communication Patterns Between Organizations
Map inter-org communication networks, identify key stakeholders, score relationship strength, and detect single-threaded risk from email data.
Model Email as a Graph: Neo4j, Cypher, and Network Analysis
Import email sender-recipient relationships into Neo4j or NetworkX. Write Cypher queries for shortest paths, community detection, and bridge connector analysis.
CLI Mail Merge: Variable Substitution and Send-Time Optimization
Run mail merge from your terminal. Variable substitution, conditional content blocks, timezone-aware scheduling, send throttling, and deliverability safeguards.
Parse Email Signatures for Contact Enrichment
Extract job titles, phone numbers, LinkedIn URLs, and company info from email signatures. Regex patterns, signature block detection, and multi-message cross-referencing.
Reconstruct Org Charts from Email CC Patterns
Infer reporting lines, detect managers from CC behavior, and estimate seniority from email response patterns. Build org charts from inbox data with Nylas CLI.
Group Inbox by Corporate Email Domain
Organize your inbox by sender domain to identify which companies email you most. Filter freemail providers, map subsidiaries to parent companies, and export to CSV.
CRM Email Workflows
Turn your inbox into CRM intelligence. Group emails by company, build contact hierarchies, enrich profiles, and automate outbound — all from the CLI.
Export Email Data to Pipedrive
Export email and contact data from Nylas CLI into Pipedrive. Map to Persons, Organizations, Deals, and Activities. CSV and REST API with Python and TypeScript.
Export Email Data to HubSpot
Export email and contact data from Nylas CLI into HubSpot. Map to Contacts, Companies, and Engagements. CSV import, API v3 sync, Python and TypeScript.
Export Email Data to Salesforce
Export email and contact data from Nylas CLI into Salesforce. Map to Leads, Contacts, Accounts, and Tasks. CSV and REST API examples in Python and TypeScript.
Test Email in CI/CD with PowerShell
Test email delivery and content in CI/CD pipelines using PowerShell and Nylas CLI. GitHub Actions and Azure DevOps examples with Pester assertions on email content.
Monitor Your Inbox with PowerShell
Build inbox monitoring and alerting scripts with PowerShell and Nylas CLI. Poll for new emails, watch for specific senders, trigger Teams webhooks and desktop notifications.
Office 365 Email from PowerShell
Manage Office 365 email from PowerShell without Microsoft Graph API complexity. Authenticate, list, search, read, and send email with Nylas CLI. One command instead of ten.
Automated Email Reports with PowerShell
Build automated email reporting workflows with Nylas CLI and PowerShell. Query emails, aggregate data with Group-Object, generate HTML reports, and schedule with Task Scheduler.
Automate Email and Calendar in PowerShell
Cross-provider email and calendar automation in PowerShell using Nylas CLI. Read emails, create events, check availability, and schedule meetings from scripts.
Download Email Attachments in PowerShell
Download and process email attachments from any provider using Nylas CLI in PowerShell. Filter by file type, bulk download, and build attachment pipelines.
Read and Search Email in PowerShell
Read, search, and filter email from PowerShell using Nylas CLI. List unread, search by sender or date, extract bodies, pipe through Where-Object, and export to CSV.
Replace Send-MailMessage with Nylas CLI
Step-by-step migration from the deprecated Send-MailMessage cmdlet to Nylas CLI. Side-by-side before/after examples for every common email pattern in PowerShell.
Send Email from PowerShell
Send email from PowerShell using Nylas CLI. Replaces Send-MailMessage with OAuth2, attachments, HTML body, scheduling, and multi-recipient support. No SMTP config required.
Connect Voice Agents to Email and Calendar
Bridge LiveKit, Vapi, or any voice agent framework to email and calendar using Nylas CLI as a subprocess. Complete Python examples.
API Key Rotation, Audit Logging, and Credential Management for CLI Email
Manage Nylas CLI credentials securely. Rotate API keys, configure audit logging, handle data policies, and meet SOC 2 requirements for automated email workflows.
Fix UTF-8 BOM, Zero-Width Spaces, and MIME Encoding Bugs in Email
Diagnose invisible Unicode characters that break email filters. UTF-8 BOM removal, zero-width space detection, quoted-printable vs base64 decoding, and MIME charset fixes.
Best CLI Email Tools Compared
Compare Nylas CLI, mailx, mutt, msmtp, and swaks side by side on provider support, OAuth, JSON output, AI agent integration, calendar access, and scripting.
SPF, DKIM, DMARC: Debug Email Deliverability from the Terminal
Check SPF records with dig, verify DKIM selectors, test DMARC policies, inspect authentication headers, and diagnose bounce handling from the CLI.
Email as Memory for AI Agents
Use email as persistent memory for AI agents — semantic, episodic, and procedural. Search, retrieve, and reason over conversation history with Nylas CLI.
Why AI Agents Need Email Addresses: Identity, Verification, and Agent-to-Agent Communication
AI agents use email as their primary identity on the internet. Signups, OTP verification, agent-to-agent messaging, and identity trust chains.
Why AI Agents Need Email
AI agents need email for authentication, two-way communication, and audit trails. See how Nylas CLI gives agents full inbox access in a single command.
OpenClaw Nylas Plugin — npm Install Guide
Install @nylas/openclaw-nylas-plugin to give OpenClaw 14 native email, calendar, and contacts tools. Multi-account, typed schemas, auto-discovery.
List Exchange Emails from Terminal (No EWS Setup)
Read and search Exchange Online and on-prem mailboxes from the command line. No EWS, PowerShell, or Graph API. Ready for the Oct 2026 EWS deprecation.
List IMAP Emails from the Command Line
List, search, and filter emails from any IMAP server from your terminal. Works with Fastmail, ProtonMail Bridge, Zoho, and any IMAP-compatible provider.
List iCloud Mail from Terminal (No App Passwords)
Read and search iCloud Mail from the command line. Skip app-specific passwords and IMAP setup. Hide My Email aliases and custom domains work automatically.
List Yahoo Mail from Terminal (No App Passwords)
Read, search, and filter Yahoo Mail from the command line. Skip IMAP config and app-specific passwords. OAuth2 authentication handled automatically.
List Outlook Emails from Terminal (No Graph API)
Read, search, and filter your Outlook and Microsoft 365 inbox from the command line. Skip Azure AD app registration. OAuth2 handled automatically.
List Gmail Emails from the Command Line
List, search, and filter Gmail emails from your terminal. One command, no Google API setup. Works with OAuth2 out of the box.
Create a Manus Skill for Email and Calendar
Build a Manus AI Skill that gives your agent email and calendar access using Nylas CLI as the execution layer. Covers SKILL.md format, scripts, and setup.
Nylas CLI with OpenClaw Personal Assistant
Connect Nylas CLI to OpenClaw so your self-hosted AI assistant can read, send, and schedule email and calendar events from WhatsApp, Telegram, or Discord.
GPG Encrypted Email from the CLI
Send and receive GPG/PGP encrypted email from your terminal using Nylas CLI. Auto-fetches keys from keyservers. Sign, encrypt, or both via RFC 3156 PGP/MIME.
E2E Email Testing with Playwright
Test password reset, invitation, and verification emails end-to-end. Poll with Nylas CLI, verify content in Playwright, and click links. No Gmail config needed.
Build an LLM Agent with Email & Calendar Tools
Add email and calendar tools to your LLM agent using Nylas CLI subprocess commands. List messages, send email, and create events without writing API clients.
Send Email from the Command Line — No SMTP, No Sendmail
Send email from your Linux, macOS, or Windows terminal without configuring SMTP, Postfix, or sendmail. One command works with Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.
Run nylas email send --help for full help output.