From owner-freebsd-questions Mon Feb 11 12:46:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id D2ADD37B405 for ; Mon, 11 Feb 2002 12:46:07 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id BB4B92B79B; Mon, 11 Feb 2002 21:45:34 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id D27BC227; Tue, 12 Feb 2002 07:45:00 +1100 (EST) Date: Tue, 12 Feb 2002 07:45:00 +1100 From: Edwin Groothuis To: Lord Raiden Cc: freebsd-questions@freebsd.org Subject: Re: Perl Question Message-ID: <20020212074500.F494@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Lord Raiden , freebsd-questions@freebsd.org References: <4.2.0.58.20020211023223.009c3860@pop.netzero.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <4.2.0.58.20020211023223.009c3860@pop.netzero.net>; from raiden23@netzero.net on Mon, Feb 11, 2002 at 02:39:49AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 11, 2002 at 02:39:49AM -0500, Lord Raiden wrote: > What is the easiest way to go about doing this? The server this is > running on is FreeBSD 4.5 using Apache. Any help on this would be greatly > welcome. I can do the error checking and stuff like that myself. My > biggest stumbling point is doing the correct subject, message, and > attachments based on the selections in the submitted form and then sending > them off as individual emails. Of that list, doing the attachments is the > toughest part. Not sure how to do that. Thanks in advance for any help or > pointers. Use mutt: open(FOUT,"|mutt -a filename -s subject person1 person2 person2"); print FOUT "C'est ne pas une lettre\n" close(FOUT); Just be sure that you check person1..3 to not have illegal characters in them (`, ; etc) Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message