# phpman > man > MPACK(1)

[MPACK(1)](https://www.chedong.com/phpMan.php/man/MPACK/1/markdown)                               General Commands Manual                              [MPACK(1)](https://www.chedong.com/phpMan.php/man/MPACK/1/markdown)



## NAME
       mpack - pack a file in MIME format

## SYNOPSIS
       **mpack**  [  **-a**  ] [ **-s** _subject_ ] [ **-d** _descriptionfile_ ] [ **-m** _maxsize_ ] [ **-c** _content-type_ ] _file_
       _address_ _..._
       **mpack** [ **-a** ] [ **-s** _subject_ ] [ **-d** _descriptionfile_ ] [ **-m** _maxsize_ ] [ **-c** _content-type_ ] **-o** _out__‐
       _putfile_ _file_
       **mpack**  [  **-a**  ]  [  **-s** _subject_ ] [ **-d** _descriptionfile_ ] [ **-m** _maxsize_ ] [ **-c** _content-type_ ] **-n**
       _newsgroups_ _file_

## DESCRIPTION
       The _mpack_ program encodes the the named file in one or more  MIME  messages.   The  resulting
       messages  are  mailed  to one or more recipients, written to a named file or set of files, or
       posted to a set of newsgroups.

## OPTIONS
### -a
              is inline.

### -s
              Set  the  **Subject** header field to _Subject_.  By default, **mpack** will prompt for the con‐
              tents of the subject header.

### -d
              Include the contents of the file _descriptionfile_ in an introductory section at the be‐
              ginning of the first generated message.

### -m
              Split  the  message  (if  necessary) into partial messages, each not exceeding _maxsize_
              characters.  The default limit is the value of the **SPLITSIZE** environment variable,  or
              no  limit if the environment variable does not exist.  Specifying a _maxsize_ of 0 means
              there is no limit to the size of the generated message.

### -c
              Label the included file as being of MIME type _content-type_, which must be a subtype of
              **application**,  **audio**, **image**, or **video**.  If this switch is not given, **mpack** examines the
              file to determine its type.

### -o
              Write the generated message to the file _outputfile_.  If the message has to  be  split,
              the  partial  messages  will  instead  be  written to the files _outputfile_.01, _output__‐
              _file_.02, etc.

### -n
              Post the generated message(s) to the comma-separated netnews _newsgroups_.

       _file_   Encode the named _file_.

       _address_ _..._
              Mail the generated messages to the specified addresses.

## ENVIRONMENT
       **TMPDIR** Directory to store temporary files.  Default is /tmp.

       **SPLITSIZE**
              Default value of the -m switch.

## REPORTING BUGS
       Send all bug reports to <mpack-bugs@andrew.cmu.edu>.



                                                                                            [MPACK(1)](https://www.chedong.com/phpMan.php/man/MPACK/1/markdown)
