maton outlook message send

Send an email (builds the Microsoft Graph message object automatically)

maton outlook message send [flags]

Options

--bcc <string>
BCC recipients, comma-separated
-t, --body <string>
Email body content (one of --body, --body-from-file required)
-F, --body-from-file <string>
Read message body from a file path (or '-' for stdin)
--cc <string>
CC recipients, comma-separated
--connection <string>
Connection ID to route through (Maton-Connection header)
--dry-run
Print the request that would be sent without executing it
--format <string>
Output format: 'json' (default) or 'text' on supported commands
--html
Send body as HTML (default: plain text)
-q, --jq <expression>
Filter JSON output using a jq expression
--no-save
Do not save the sent message to Sent Items
--paginate
Follow next_cursor and concatenate all pages (list commands only)
--subject <string>
Email subject line (required)
--template <string>
Format JSON output using a Go template; see "maton help formatting"
--to <string>
Recipient email(s), comma-separated (required)

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

Examples

$ maton outlook message send --to alice@example.com --subject "Hi" --body "hello"
$ maton outlook message send --to a@b.com,c@d.com --cc boss@b.com --subject Update --body "..."
$ maton outlook message send --to a@b.com --subject "Report" --body "<p>see attached</p>" --html
$ maton outlook message send --to a@b.com --subject draft --body-from-file ./body.md
$ maton outlook message send --to a@b.com --subject draft --body "..." --no-save

See also