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

Top Page
Delete this message
Reply to this message
Author: Tim Jackson
Date:  
To: exim-users
Subject: Re: [Exim] How can I send mail with attach MIME?
On Wed, 31 Mar 2004 11:54:32 -0300 Magno Weege de Oliveira wrote:

Reply on the list, thanks.

> Tim Jackson wrote:
> >This isn't really an Exim issue. Constructing MIME messages isn't
> >Exim's job
> yep, you're right!!
> I tried to use uuencode before because I don't know how to attach files
> with exim! :-)


Again, that's because you don't attach files with Exim. You have to
generate a message with some other software, then pass it to Exim. How you
generate the files is independent of whether you're using Exim, sendmail,
or whatever MTA (unless the MTA happens to have some unusual interface
where you can pass it a file and it will generate a MIME message - Exim
doesn't).

> Let me explain right. I need to attach some files and send this by email
> with From:, To:, subject, preformated! just it!


I understand what you're trying to do. However, you can't do it using just
Exim. You need some kind of other script or software.

> how can I do this by line command?


Write a script that takes a file and outputs a MIME mail, like I said.
Then do "/path/to/yourscript file | exim whatever-options".

Or, some other posters suggested some pre-made software that may help you
do this (e.g. nail). I haven't used this so I don't know how it works.

> What I realy need to do is send a confirmation with the attached files
> and I need to send this with exim :-)


There is nothing to stop you using Exim to send it; it's just that you
need something else to generate the message first.


Tim