From owner-freebsd-questions Sat Jan 29 12: 9:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 35CCC14F80 for ; Sat, 29 Jan 2000 12:08:48 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12Ec8s-000JeN-00; Sat, 29 Jan 2000 17:58:38 +0000 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #1) id 12Ec8s-0002mh-00; Sat, 29 Jan 2000 17:58:38 +0000 Date: Sat, 29 Jan 2000 17:58:38 +0000 From: Ben Smithurst To: Victor M Cc: questions@freebsd.org Subject: Re: appended mail Message-ID: <20000129175838.A10697@strontium.scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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