From owner-freebsd-questions Tue Aug 19 09:14:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA16006 for questions-outgoing; Tue, 19 Aug 1997 09:14:59 -0700 (PDT) Received: from dan.emsphone.com (dan@dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA15998 for ; Tue, 19 Aug 1997 09:14:53 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.8.6/8.8.6) id LAA06062; Tue, 19 Aug 1997 11:14:28 -0500 (CDT) Message-ID: <19970819111427.46606@emsphone.com> Date: Tue, 19 Aug 1997 11:14:27 -0500 From: Dan Nelson To: Gary Stanny Cc: questions@FreeBSD.ORG Subject: Re: mailing a GIF from a cgi script References: <3.0.1.32.19970819074240.006b4428@izzy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <3.0.1.32.19970819074240.006b4428@izzy.net>; from "Gary Stanny" on Tue Aug 19 07:42:40 GMT 1997 X-OS: FreeBSD 2.2-970701-RELENG Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In the last episode (Aug 19), Gary Stanny said: > Hi all - > > Does anybody know of a tool that I can use to build a MIME mail msg > out of a GIF|JPG cartoon file that I can use from a perl cgi script. > (meaning how do I mail great Dilbert's to every idiot boss I have > ever had? :) I've been using the 'mutt' mailer for a few months to email attachments automatically to people: open(Z, '|mutt -s "$subject" -a $filename user@host.com'); print Z "One Attachment"; close(Z); -Dan Nelson dnelson@emsphone.com