Skip to content

mxr compose

Generated from mxr compose --help. Edit the clap definitions in crates/daemon/src/cli/ and re-run npm run build in site/ to regenerate.

Compose a new email

mxr compose [OPTIONS]
FlagDescription
--to <TO>Recipient(s), comma-separated
--cc <CC>CC recipient(s)
--bcc <BCC>BCC recipient(s)
--subject <SUBJECT>Subject line
--body <BODY>Message body as string
--body-stdinRead message body from stdin
--attach <ATTACH>File path to attach (repeatable)
--from <FROM>Account name to send from
--yesSkip confirmation prompt
--dry-runShow what would be sent without sending
--format <FORMAT>[possible values: table, json, jsonl, csv, ids]
-h, --helpPrint help

Write a new message in $EDITOR or from stdin in scripts.

Terminal window
mxr compose --to alice@example.com --subject 'Friday'
printf 'Approved' | mxr compose --to alice@example.com --subject 'Re: plan' --body-stdin --dry-run