Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: attaching file in unix email

Re: attaching file in unix email

From: Markus Bock <mb_at_x12.NIC.DTAG.DE>
Date: 1998/08/27
Message-ID: <6s3k89$mqc$1@jupiter.NIC.DTAG.DE>#1/1

[Posted and mailed]

In article <35E5141A.F5BBC18C_at_ibm.net>,

        Johnny Tjokro <tjokroj_at_ibm.net> writes:
> Hi..
> Does anybody know how to attach file in unix email environment ?

Hello!
We use a software called 'mimencode' to do it. Sorry, our system administrator is on an business trip, so i'm not able to say where you can get it. But this should not be a problem (i'm sure you can find it in the web).
With this piece of software you can do something like

snip----------------------------------------------
#! /bin/sh
(echo "From: Markus Bock <mb_at_nic.dtag.de>";
echo "To: test_at_nic.dtag.de" ;
echo "Cc: test2_at_nic.dtag.de" ;
echo "Subject: test.csv" ;
echo "Mime-Version: 1.0" ;
echo "Content-Type: application/octet-stream" ;
echo "Content-Description: test.csv" ;
echo "Content-Transfer-Encoding: base64" ;
echo "" ;

/usr/local/bin/mimencode -b -p < test.csv ) | /usr/lib/sendmail -v -t
snap---------------------------------------------
that's all.
Hope this helps.

nice day
Markus

-- 
            _|_|_|_|   Markus Bock
 _    _    _   _|   _  Deutsche Telekom AG; ZID 231-4
|_|  |_|  |_|  _|  |_| Hammer Str. 216 - 226; 48153 Muenster
               _|      email: mb_at_nic.dtag.de
               _|      phone: +49 251 910 362; fax: +49 251 910 399
Received on Thu Aug 27 1998 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US