Re: sending a mail with a file joined

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 06/30/04


Date: Wed, 30 Jun 2004 08:18:20 GMT

On Wed, 30 Jun 2004 01:40:40 +0200, Heiner Steven <heiner.steven@nexgo.de> wrote:
>
>
> Rahan wrote:
>
>> I would like to know how to send, if possible, a mail with a file joined ?
>> I want the to be joined, not included in the body of the mail.
>
> http://www.shelldorado.com/articles/mailattachments.html
>

Interesting page, Heiner. I've gone over it carefully and learned a lot,
as well as downloaded the RFCs you give links to there. Very nice.

It does not seem like it would be difficult to write a script that would
allow one to send attachments with mail(x). Formail to add the headers`
and (on this Debian Linux box):

$ file <file> | magic2mime

to get the mimetype and sed to write in the boundary-seperator/headers.
and the attachment file. Mimencode to turn binaries into ascii.

AC