Email multiple attachments from command line
C Shell
Switch branches/tags
Nothing to show
Clone or download
Latest commit f51b676 Jan 25, 2016
Failed to load latest commit information.
README Minor README update Jan 23, 2016 mimesend no longer needed Jan 25, 2016
mpk.c version 1.3 Jan 23, 2016


MPK allows to send email attachments from Unix command line or a shell script. Unlike mpack and mmencode from metamail it allows you to encode multiple attachments in to a single mail message.

You specify attachment filenames as arguments (wildcards allowed) and optionaly (with -m) provide a text message on the standard input (use the < operator to get it from a file or redirect from a pipe). A base64 encoded multipart message stream is produced to the standard output.

Note: From version 1.3 mpk allows to send SMTP email directly via local MTA. Use -t for and -s for subject. 

Example use:

echo "See the attached pictures" | mpk -m -t -s "JPEG Pictures" *.jpg