HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mutt — Command-line email client. More information: <http://mutt.org/doc/mutt.1.txt>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandclientclimuttemailmoreline

Problem

How to use the mutt command: Command-line email client. More information: <http://mutt.org/doc/mutt.1.txt>.

Solution

mutt — Command-line email client. More information: <http://mutt.org/doc/mutt.1.txt>.

Open the specified mailbox:
mutt -f {{mailbox}}


Send an email and specify a subject and a cc recipient:
mutt -s {{subject}} -c {{cc@example.com}} {{recipient@example.com}}


Send an email with files attached:
mutt -a {{file1 file2 ...}} -- {{recipient@example.com}}


Specify a file to include as the message body:
mutt -i {{path/to/file}} {{recipient@example.com}}


Specify a draft file containing the header and the body of the message, in RFC 5322 format:
mutt -H {{path/to/file}} {{recipient@example.com}}

Code Snippets

Open the specified mailbox

mutt -f {{mailbox}}

Send an email and specify a subject and a cc recipient

mutt -s {{subject}} -c {{cc@example.com}} {{recipient@example.com}}

Send an email with files attached

mutt -a {{file1 file2 ...}} -- {{recipient@example.com}}

Specify a file to include as the message body

mutt -i {{path/to/file}} {{recipient@example.com}}

Specify a draft file containing the header and the body of the message, in RFC 5322 format

mutt -H {{path/to/file}} {{recipient@example.com}}

Context

tldr-pages: common/mutt

Revisions (0)

No revisions yet.