From owner-freebsd-questions@FreeBSD.ORG Sat Apr 2 12:47:59 2005 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 1628E16A4CE for ; Sat, 2 Apr 2005 12:47:59 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 304A743D41 for ; Sat, 2 Apr 2005 12:47:58 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a013.otenet.gr [212.205.215.13]) j32ClAMd007002; Sat, 2 Apr 2005 15:47:11 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j32CltXp025156; Sat, 2 Apr 2005 15:47:55 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j32CltAj025155; Sat, 2 Apr 2005 15:47:55 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 2 Apr 2005 15:47:55 +0300 From: Giorgos Keramidas To: "Colin J. Raven" Message-ID: <20050402124754.GB6829@gothmog.gr> References: <20050402140601.D9329@kenmore.kozy-kabin.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050402140601.D9329@kenmore.kozy-kabin.nl> cc: freebsd-questions@freebsd.org Subject: Re: *attaching* a file to /usr/bin/mail message 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: Sat, 02 Apr 2005 12:47:59 -0000 On 2005-04-02 14:08, "Colin J. Raven" wrote: > Does anyone happen to know how you would *attach* *not readin the > contents of, but actually *attach*) a file using /usr/bin/mail? Not very easily, is one answer. You can probably get away with uuencode output filtered to the standard input of mail(1), but that's not really a "MIME attachment". > On my system mail has no "-a" (attach) flag, and some Googling told me > mailx might solve the problem, but /usr/bin/mailx just invokes mail.... Other mail user agents do have a -a flag though. At least mail/mutt does and I've used it successfully in the past. If you are not stuck with mail(1) only, you can always use mutt for this. mutt -a /path/to/file recipient.address@example.net