Command
nylas email send
Send an email. Supports scheduling, GPG signing/encryption, and tracking.
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
Send Email from the Terminal
Send, read, search, and automate email from your terminal. Works with Gmail, Outlook, and IMAP.
Build an LLM Agent with Email and Calendar Tools
Add email and calendar tools to your custom agent. Use Nylas CLI as subprocess tools. No API code.
E2E Email Testing with Playwright
Send and verify transactional emails in tests. Poll with the CLI, parse content, click links.
GPG Encrypted Email from the CLI
Sign, encrypt, and verify email with GPG. Auto-fetches keys from public keyservers.
Run nylas email send --help for full help output.