metasend [options] [filename]

A largely developer-oriented interface for sending non-text email using MIME typing metadata. If no arguments are specified, metasend prompts the user for the information it needs. See mailto for a possible alternative with a friendlier interface.


-/ subtype

Specify the MIME multipart subtype other than mixed.


Batch mode. All information must be provided on the command line.

-c cc

Specify any CC addresses.

-D string

Specify a string to be used as the Content-description value.

-e encoding

Specify the encoding to use. Possible values are base64, quoted-printable, 7bit (no encoding is done), or x-uue.


The file to be included is already MIME-encoded and doesn’t need any Content- or other header fields added.

-f file

The file to be included. If more than one file is specified with separate -f options (see -n), they are combined into a single multipart MIME object.

-F from

The From address.

-i content-id

The content ID value for the MIME entity. Must be a valid content ID enclosed in angle brackets (<>).

-I content-id

The content ID value for a multipart entity being created by metasend. Must be a valid content ID enclosed in angle brackets (<>).

-m type

The MIME content type.


Specify that an additional file is to be included. Must appear after one occurrence of at least -m, -c, and -f and must be specified for each included file.

-o outfile

Send the output to the specified file instead of delivering as mail.

-P preamblefile ...

Get Linux in a Nutshell, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.