CGI/PERL question: making a form to send an e-mail

A friend and client belongs to a church that wants to put a page like this:

http://www.c3church.org/page/invite

on their own church’s web site. It would be a nice favor to a good client if I could tell them how to do it.

I’m more of an ASP person, so I’ve never really delved into CGI/PERL. But my friend’s church’s site is definitely CGI-based (.shtml pages). How do I do this (make a form that lets a church member put in her own name/e-mail and a friend’s name/email and send a form-letter invitation to said friend’s e-mail)?

I assume that there’s a billion free scripts like this online, somewhere … but all I can find are the more typical form/e-mail scripts, where someone types info. into fields and then sends that info. in an e-mail to YOUR address–not to a variable third party’s address.

I’ve got a PERL script I’ve used for similar purposes that I could modify for you. Email me, and I’ll dig it up for you.

You might also want to ask the client if their Web host has some sort of control panel for users, or a nice “what you can do with your account” FAQ for users.

I’m also an “ASP Guy” (but a girl…) and had to do a CGI form for someone one time. I got their control panel URL, logged in and after a few minutes of clicking around I found that there were some nice pre-installed CGI scripts for users and it gave instructions on how to use each one and the settings you need to use.

Then I charged them a lot of $$ to do it, just because this “webmaster” was too stupid to figure it out herself. heh. n00bs :wink:

But yeah, if it’s a nice Unix webhost, I bet they have some nice pre-installed scripts to use.

I think this is pretty close to what you need:

http://javascript.internet.com/page-details/email-this-page.html