Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 09:59:28 -0500
From:      Daniel Frazier <dfrazier@magpage.com>
To:        Lord Raiden <raiden23@netzero.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Perl Question
Message-ID:  <3C67DC50.3040700@magpage.com>
References:  <4.2.0.58.20020211023223.009c3860@pop.netzero.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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  <dfrazier@magpage.com>   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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C67DC50.3040700>