EmailOS Echo Command Documentation
The mailos echo command sends a message to the email address MailOS resolves for the current directory. It is a self-send shortcut built on the same delivery path and flags as mailos send.
Basic Usage
bash
mailos echo --subject "Test" --body "Checking MailOS delivery"Use --dry-run to preview the resolved sender and recipient without sending:
bash
mailos echo --subject "Test" --body "Checking MailOS delivery" --dry-runRecipient Resolution
mailos echo fills --to automatically. It resolves the recipient in this order:
MAILOS_FROM_EMAILMAILOS_EMAIL_ADDRESS- The nearest parent
emailos.jsonoremailos.tomlfrom_addressoremail_address - The default MailOS account in the user's machine config, such as
~/.email/config.json
When mailos echo falls back to the default machine config, it also uses that account for sending.
Relationship to Send
mailos echo reuses the normal mailos send flags and delivery behavior. You can use send options such as:
bash
mailos echo --subject "Plain test" --body "Hello" --plain
mailos echo --subject "File test" --file message.md
mailos echo --subject "Preview" --body "Hello" --dry-runmailos echo is intentionally for self-sends. If you need to send to another address, use mailos send --to [email protected].
Useful Checks
Inspect the resolved project send identity:
bash
mailos whoami
mailos envConfirm the message in the sent folder:
bash
mailos sent --number 5 --days 1 --save-markdown=false