Send an email. Supports scheduling, GPG signing/encryption, and tracking. Works across Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.
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.
Syntax
nylas email send --to EMAIL --subject SUBJECT --body BODY [options]
How It Works
The Nylas CLI abstracts away the differences between Gmail's API, Microsoft Graph, Exchange Web Services, and raw IMAP. You write one command; it works across all providers. This matters for automation â your cron job or CI pipeline doesn't need provider-specific logic.
Examples
Basic send:
nylas email send --to user@example.com --subject "Quick note" --body "Hello!" --yes
Schedule for later:
nylas email send --to team@company.com --subject "Reminder" --body "..." --schedule 2h
GPG signed and encrypted:
nylas email send --to legal@partner.com --subject "Contract" --body "..." --sign --encrypt
Common Issues
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.
Tips
Pipe to jq: nylas email send --json | jq '.' gives you structured data you can filter and transform.
Combine with other commands: Chain nylas email send with other Nylas CLI commands using shell pipes and variables for complex workflows.
Full docs: nylas email send reference â all flags, advanced examples, and troubleshooting.
All commands: Nylas CLI Command Reference
Get started: brew install nylas/nylas-cli/nylas â other install methods
Top comments (0)