[ale] Mimencode

Joe Steele joe at madewell.com
Wed Jul 18 18:31:14 EDT 2001


The mimencode program is just one piece of the metamail package.  It only 
deals with the base-64 encoding of the binary data.  Separate from that, 
you need to format the message using appropriate mime headers and 
separators.  This, of course can be done manually, if you understand 
the construction of mime encoded messages.  Alternatively, if you want 
to send the mail from the command line, you could use metasend.  For some 
reason, I have a hunch that if you search the ALE archives for "metasend", 
you might find an example of its use :)


--Joe

-----Original Message-----
From:	Bob Kruger [SMTP:krugerb at benning.army.mil]
Sent:	Wednesday, July 18, 2001 2:58 PM
To:	ale at ale.org
Subject:	[ale] Mimencode 

Has anyone use mimencode or mmencode with success in attaching binary
files to email messages?

In the past, if I wanted to send a spreadsheet named "daily.xls" to a
mailing list, I could do the following with a simple bash script.

#!/usr/bin/bash
(cat list.txt;uuencode daily.xls daily.xls) | /usr/sbin/sendmail -t

Note - file list.txt has the To:, From:; Subject, etc.  info.

The following will generate a message, but my mail client (Netscape)
does not recognize or decode the result, so I have a nice long text
file.

#!/usr/bin/bash
(cat list.txt;mmencode daily.xls) | /usr/bin/sendmail -t


Any hints or clues?

Regards - Bob Kruger

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list