From owner-freebsd-questions Tue May 28 06:14:54 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA25924 for questions-outgoing; Tue, 28 May 1996 06:14:54 -0700 (PDT) Received: from apollo.is.co.za (apollo.is.co.za [196.4.160.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA25918 for ; Tue, 28 May 1996 06:14:50 -0700 (PDT) Received: from admin.is.co.za (admin.is.co.za [196.23.0.9]) by apollo.is.co.za (8.7.5/8.7.5/IShub#2) with ESMTP id PAA26996; Tue, 28 May 1996 15:14:29 +0200 (GMT) Received: (from robin@localhost) by admin.is.co.za (8.7.5/8.7.5/ISsubsidiary#1) id PAA20508; Tue, 28 May 1996 15:14:27 +0200 (GMT) From: Robin Lunn Message-Id: <199605281314.PAA20508@admin.is.co.za> Subject: Re: Direct mail program To: admin@quebecweb.com Date: Tue, 28 May 1996 15:14:26 +0200 (GMT) Cc: questions@freebsd.org In-Reply-To: <199605281200.IAA21879@quebecweb.com> from "admin@quebecweb.com" at May 28, 96 08:00:50 am X-Organisation: The Internet Solution (Pty) Ltd. X-Phone: +27-11-4475566; Fax: +27-11-4475567 Reply-To: robin@is.co.za X-AIDAT-Member: See http://www.aidat.org X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk admin@quebecweb.com wrote: > I need a perl of sh routine that mail the file to a recipient. /bin/cat file | /usr/bin/mail -s "Subject here" user@foobar.com or if you have the message in a perl variable: open(MAIL,"| /usr/bin/mail -s \"$subject\" $address") && print MAIL $message && close(MAIL); or something like that... -- _ __ | Only my ideas here unless I say otherwise... ' ) ) / | (BeamJack@IRC) /--' ____/___o __ | "Nondum amabam, et amare amabam... quaerebam / \_(_) /_) (__/) )_ | quid amarem, amans amare." - St Augustine