From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 17:39:46 2003 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 854A216A4CE for ; Wed, 31 Dec 2003 17:39:46 -0800 (PST) Received: from be-well.no-ip.com (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0334C43D62 for ; Wed, 31 Dec 2003 17:39:45 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.no-ip.com (Postfix, from userid 1147) id 7B80D55; Wed, 31 Dec 2003 20:39:44 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Chad Albert" References: <433CEE75B1339547BBB373B340665384116B16@hfmail01.sgf.healthcarefirst.med> From: Lowell Gilbert Date: 31 Dec 2003 20:39:44 -0500 In-Reply-To: <433CEE75B1339547BBB373B340665384116B16@hfmail01.sgf.healthcarefirst.med> Message-ID: <44oetosazj.fsf@be-well.ilk.org> Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: mail 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: Thu, 01 Jan 2004 01:39:46 -0000 "Chad Albert" writes: > I am writing a script that mails me when certain events occur. I am > using mail(1) to notify me by email when some things happen. I have > read the man page and I don't see a way to attach a file, does anyone > know how to use mail(1) to attach a file? You don't, at least not as a MIME attachment (mail(1) doesn't understand MIME). You can include a file in the message; traditionally, by using uuencode(1) if the file is binary... -- Lowell Gilbert, embedded/networking software engineer, Boston area: resume/CV at http://be-well.ilk.org:8088/~lowell/resume/ username/password "public"