From owner-freebsd-questions@FreeBSD.ORG Wed Jul 21 07:11:04 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACE7316A4CE for ; Wed, 21 Jul 2004 07:11:04 +0000 (GMT) Received: from chylonia.3miasto.net (chylonia.3miasto.net [213.192.74.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id D064843D5D for ; Wed, 21 Jul 2004 07:11:03 +0000 (GMT) (envelope-from wojtek@tensor.3miasto.net) Received: from chylonia.3miasto.net (wojtek@localhost [127.0.0.1]) i6L7AojX086332; Wed, 21 Jul 2004 09:10:50 +0200 (CEST) (envelope-from wojtek@tensor.3miasto.net) Received: from localhost (wojtek@localhost)i6L7AnIh086329; Wed, 21 Jul 2004 09:10:49 +0200 (CEST) (envelope-from wojtek@tensor.3miasto.net) X-Authentication-Warning: chylonia.3miasto.net: wojtek owned process doing -bs Date: Wed, 21 Jul 2004 09:10:49 +0200 (CEST) From: Wojciech Puchar X-X-Sender: wojtek@chylonia.3miasto.net To: Jay Moore In-Reply-To: <200407202324.30211.jaymo@cromagnon.cullmail.com> Message-ID: <20040721090847.F85700@chylonia.3miasto.net> References: <200407162036.i6GKaNt11099@www.plutao.lusodigital.net> <1090197528.91088.68.camel@wstaylorm.dand06.au.bytecraft.au.com> <200407202324.30211.jaymo@cromagnon.cullmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: carla.neves@nereus.pt cc: freebsd-questions@freebsd.org cc: Murray Taylor Subject: Re: How to send attached files on sendmail with mail tool? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 07:11:04 -0000 > > > > cat file | uuencode tgt_filname | mail -s "subject" test@example.com uuencode > > > subject can be derived from shell script variables if necessary. > > Do you have to do a uudecode on the receiving end to recover the file? > > I tried this - sending a pdf file from this FreeBSD system to a Windoze user > that gets mail via POP - it didn't work. The filename came through, and it > was listed as an attachment, but there was nothing useful in the file. > i think windoze just can't decode uuencoded attachments right. it only supports base64 right. metamail will be useful, possibly /usr/local/bin/encode-base64 was installed by package p5-MIME-Base64-2.21