Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2000 17:58:38 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Victor M <vit@gus.orgus.ru>
Cc:        questions@freebsd.org
Subject:   Re: appended mail
Message-ID:  <20000129175838.A10697@strontium.scientia.demon.co.uk>
In-Reply-To: <Pine.BSF.3.96.1000129211048.11185F-100000@gus.orgus.ru>
References:  <Pine.BSF.3.96.1000129211048.11185F-100000@gus.orgus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Victor M wrote:

> I can send message to the peer by putting the command in my program:
> 
> cat some_message_file.txt | mail my_peer
> 
> But this message will be sent in the body of the mail, and I want it to be
> sent as appended file, not in the body. It can be useful if you send not 
> readable files, e.g. graphical images.

try

$ uuencode some_message_file.txt some_message_file.txt | mail my_peer

this isn't ideal -- it would be better do it as a MIME attachment, but there
are no programs to do that in the FreeBSD base system. To send MIME mail
you could use Mutt (yes, it can be used non-interactively), mpack, or write
a short perl script using one of the MIME modules.

-- 
Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000129175838.A10697>