98yz has asked for the wisdom of the Perl Monks concerning the following question:

This may be the simplest problem in the world to some of ya, but being an extremely new perl follower it overwelms me. I need to create a very simple form to send an email with a file attached. I am building an online photo album for a site and want a user to be able to enter email address, name, and their picture and hit send and it come to a specific email address. Please Help

Replies are listed 'Best First'.
Re: email form with a file attached
by merlyn (Sage) on Dec 31, 2000 at 02:34 UTC
    First, don't.

    This is a great way to mailbomb someone else. You need accountability, or at least put limits in so that you can mail only one picture every five minutes or something.

    Second, once you've decided how to eliminate any possibility that your service will be used to mailbomb someone, then look at my column on sending MIME attachments from a web page. Ignore the part about file upload.

    -- Randal L. Schwartz, Perl hacker