# Install GPG (if not already present)
# macOS
-weight: 500;">brew -weight: 500;">install gnupg # Ubuntu/Debian
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">install gnupg # Generate a key if you don't have one
gpg --full-generate-key
# Install GPG (if not already present)
# macOS
-weight: 500;">brew -weight: 500;">install gnupg # Ubuntu/Debian
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">install gnupg # Generate a key if you don't have one
gpg --full-generate-key
# Install GPG (if not already present)
# macOS
-weight: 500;">brew -weight: 500;">install gnupg # Ubuntu/Debian
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">install gnupg # Generate a key if you don't have one
gpg --full-generate-key
-weight: 500;">brew -weight: 500;">install nylas/nylas-cli/nylas
nylas auth login
-weight: 500;">brew -weight: 500;">install nylas/nylas-cli/nylas
nylas auth login
-weight: 500;">brew -weight: 500;">install nylas/nylas-cli/nylas
nylas auth login
nylas email send \ --to "[email protected]" \ --subject "Signed release notes" \ --body "v2.1.0 is ready for deployment." \ --sign
nylas email send \ --to "[email protected]" \ --subject "Signed release notes" \ --body "v2.1.0 is ready for deployment." \ --sign
nylas email send \ --to "[email protected]" \ --subject "Signed release notes" \ --body "v2.1.0 is ready for deployment." \ --sign
nylas email send \ --to "[email protected]" \ --subject "Contract terms" \ --body "See the updated terms in the attachment." \ --encrypt
nylas email send \ --to "[email protected]" \ --subject "Contract terms" \ --body "See the updated terms in the attachment." \ --encrypt
nylas email send \ --to "[email protected]" \ --subject "Contract terms" \ --body "See the updated terms in the attachment." \ --encrypt
nylas email send \ --to "[email protected]" \ --subject "Confidential: Merger documents" \ --body "Encrypted and signed. Please verify signature." \ --sign --encrypt
nylas email send \ --to "[email protected]" \ --subject "Confidential: Merger documents" \ --body "Encrypted and signed. Please verify signature." \ --sign --encrypt
nylas email send \ --to "[email protected]" \ --subject "Confidential: Merger documents" \ --body "Encrypted and signed. Please verify signature." \ --sign --encrypt
# Read a message and verify its GPG signature
nylas email read msg_abc123 --verify # Output shows verification -weight: 500;">status
# => ✓ Good signature from "Alice Smith <[email protected]>"
# => Key: 4096R/0xABCD1234 (expires 2027-01-01)
# Read a message and verify its GPG signature
nylas email read msg_abc123 --verify # Output shows verification -weight: 500;">status
# => ✓ Good signature from "Alice Smith <[email protected]>"
# => Key: 4096R/0xABCD1234 (expires 2027-01-01)
# Read a message and verify its GPG signature
nylas email read msg_abc123 --verify # Output shows verification -weight: 500;">status
# => ✓ Good signature from "Alice Smith <[email protected]>"
# => Key: 4096R/0xABCD1234 (expires 2027-01-01)
# Decrypt and display an encrypted message
nylas email read msg_xyz789 --decrypt # Requires your private key to be in your GPG keyring
# Decrypt and display an encrypted message
nylas email read msg_xyz789 --decrypt # Requires your private key to be in your GPG keyring
# Decrypt and display an encrypted message
nylas email read msg_xyz789 --decrypt # Requires your private key to be in your GPG keyring
# List keys in your keyring
gpg --list-keys # Import a colleague's public key
gpg --keyserver keys.openpgp.org --recv-keys 0xABCD1234 # Export your public key for sharing
gpg --armor --export [email protected] > my-public-key.asc
# List keys in your keyring
gpg --list-keys # Import a colleague's public key
gpg --keyserver keys.openpgp.org --recv-keys 0xABCD1234 # Export your public key for sharing
gpg --armor --export [email protected] > my-public-key.asc
# List keys in your keyring
gpg --list-keys # Import a colleague's public key
gpg --keyserver keys.openpgp.org --recv-keys 0xABCD1234 # Export your public key for sharing
gpg --armor --export [email protected] > my-public-key.asc
nylas email send \ --to "[email protected]" \ --subject "Contract v3" \ --body "Latest revision attached." \ --attach "contract-v3.pdf" \ --sign --encrypt
nylas email send \ --to "[email protected]" \ --subject "Contract v3" \ --body "Latest revision attached." \ --attach "contract-v3.pdf" \ --sign --encrypt
nylas email send \ --to "[email protected]" \ --subject "Contract v3" \ --body "Latest revision attached." \ --attach "contract-v3.pdf" \ --sign --encrypt
# Wrapper script: signed-send.sh
#!/bin/bash
nylas email send "$@" --sign --yes
# Wrapper script: signed-send.sh
#!/bin/bash
nylas email send "$@" --sign --yes
# Wrapper script: signed-send.sh
#!/bin/bash
nylas email send "$@" --sign --yes
# Check SPF records
dig TXT company.com | grep spf # Verify DKIM
dig TXT selector._domainkey.company.com
# Check SPF records
dig TXT company.com | grep spf # Verify DKIM
dig TXT selector._domainkey.company.com
# Check SPF records
dig TXT company.com | grep spf # Verify DKIM
dig TXT selector._domainkey.company.com - Gmail (List Gmail Emails)
- Outlook (Send Outlook Email)
- Exchange (List Exchange Emails)
- Yahoo (Send Yahoo Email)
- iCloud (Send iCloud Email) - Send Email from the Command Line
- Secure Email Handling for CLI
- AI Agent Audit Logs
- Replace Send-MailMessage in PowerShell
- Give Your AI Agent an Email Address
- Extract OTP Codes from Email