[Exim] How can I send mail with attach MIME?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Magno Weege de Oliveira
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] How can I send mail with attach MIME?
Hi, my question is too newbie but I realy need some directions! so...
I installed exim 4.30 (working properly!) and I wanna make a script to
send a maill with attach files.
I already read some docs (maybe I need read more... :) about exim
without succes! :-(
I wanna encode a file (MIME - base64) and attach it to send after....
I try this:
uuencode -m file.txt | exim -f "" localmail@???

- the encode is fine
- and I recieve the file

MAIL:

>From - Wed Mar 31 10:28:23 2004

X-UIDL: 789d18e2bd8d97d0
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <MAILER-DAEMON@???>
Received: from localhost ([192.168.1.3])
    by mail.domain.com.br (8.12.10/8.12.10) with ESMTP id i2VDXN05020184
    for <user@???>; Wed, 31 Mar 2004 10:33:23 -0300
Received: from root by localhost with local (Exim 4.22)
    id 1B8flG-00017b-3v
    for user@???; Wed, 31 Mar 2004 10:28:16 -0300
Message-Id: <E1B8flG-00017b-3v@localhost>
Bcc:
Date: Wed, 31 Mar 2004 10:28:16 -0300


begin-base64 644 file.txt
LgpxdWl0Cg==
====



problem 1) The content of file.txt appear on the body message and not
like a MIME format for mail! Can I do this?
problem 2) exim ask me for confirmation to quit and send mail. I use
".", but need this automatic! how can I do this?
problem 3) how can I set the To:, From:, Cc: and Bcc: with fixed values?

Sory for my bad english!!
Thanks...

--

Magno Weege de Oliveira
magno.oliveira@???

DARUMA ORGA Card Systems S/A
Technology Division

  Av. Independencia 3451,  Taubate,  Sao Paulo,  BRAZIL,   12.032-000
  Tel: +55 12 281-1900 X 109/110/111/166         Fax: +55 12 281-1909
  Hot Line: +55 12 281-1925,             Mon Apr  5 11:38:45 BRT 2004


  www.orga-systems.com       www.darumaorga.com.br       www.orga.com