On Tue, 1 Jul 1997, Matthew G. Saroff wrote:
...
echo "Content-type: TEXT/PLAIN; charset=US-ASCII";\
You need to add an empty line after the headers of the attachments, in
order to separate the headers from the attachment body. Therefore,
add a simple
echo ; \
here.
echo "Hi,";\
...
echo "Content-Type: application/zip";\
echo "Content-Transfer-Encoding: base64";\
echo "Content-Disposition: attachment; filename=\"res.zip\"";\
echo "Content-Description: the postscript zip file you asked for";\
I don't know mimencode, but I suspect that you need the header
separator (the blank line) here too, before the mimencode line.
/usr/bin/mimencode -b $HOME/res.zip;\
echo "--fls3jekls3=_sd3--") | $SENDMAIL -t
Antti-Juhani