From owner-freebsd-questions Mon Feb 11 6:59:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.magpage.com (trinity.magpage.com [216.155.0.8]) by hub.freebsd.org (Postfix) with ESMTP id 90D5537B43D for ; Mon, 11 Feb 2002 06:59:31 -0800 (PST) Received: from magpage.com (dfrazier@poomba.magpage.com [216.155.24.136]) by trinity.magpage.com (8.11.6/8.11.3) with ESMTP id g1BExSq44599; Mon, 11 Feb 2002 09:59:28 -0500 (EST) Message-ID: <3C67DC50.3040700@magpage.com> Date: Mon, 11 Feb 2002 09:59:28 -0500 From: Daniel Frazier User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.7) Gecko/20020110 X-Accept-Language: en-us MIME-Version: 1.0 To: Lord Raiden Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Perl Question References: <4.2.0.58.20020211023223.009c3860@pop.netzero.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-RRT-Status: UNKNOWN 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 Lord Raiden wrote: > I know this is kinda off topic, but at the same time it's sorta on > topic. Looking for anyone who's a Perl Guru of sorts. Got a simple > question about a perl script I'm working on. All I need this script to > do is to email someone an attachment and the associated instructions on > what to do with the attachment based on which box they check in the > submission form. I also need it to send an individual email to the > email address submitted with the form for each item checked in the > form. So if I enter "theuser@domain.com" in as the email address, then > check item1, item2, and item3, it sends off 3 separate emails, each with > their respective subjects, attachments, and instructions to the user's > email address "theuser@domain.com". > > 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. attachments are a bitch... The only time I've done something with emailing attachments I ended up using MIME::Lite. this module has a good OO interface and is fairly well documented. check it out, it's in /usr/ports/mail/p5-MIME-Lite or it's in cpan if you use that... -- ---------------------------------------------------------------------- Daniel Frazier Tel: 302-239-5900 Ext. 231 Systems Administrator Fax: 302-239-3909 MAGPAGE, We Power the Internet WWW: http://www.magpage.com/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message