Skip to main content

Messages Command

Send and manage email messages using the messages command.

Overview

Available subcommands:
  • send - Send email messages
  • list - List sent messages
  • cancel - Cancel scheduled messages

Send Messages

Basic Usage

Recipients

Content Options

Testing

Key Flags

Recipients:
  • --to: Single recipient (can be used multiple times)
  • --recipients: CSV/JSON file with recipient data
Content:
  • --subject: Email subject
  • --text: Plain text content
  • --html: HTML content
  • --html-template: HTML template file
  • --text-template: Plain text template file
  • --global-substitutions: JSON file with template variables
Options:
  • --attach: File attachments (can be used multiple times)
  • --schedule: Delivery time (RFC3339 format)
  • --sandbox: Test mode without sending
  • --tags: Tags for categorization
  • --header: Custom headers
Batch Processing:
  • --max-concurrency: Parallel workers (1-10)
  • --progress: Show progress bar
  • --show-metrics: Display performance statistics

List Messages

Cancel Messages

Advanced Usage

For detailed information on batch processing and templating:

Next Steps