Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A simple Perl Mail Script

Status
Not open for further replies.

gus121

Technical User
May 9, 2002
298
GB
Hi I am an ASP web developer and a complete newbie to CGI.

Unfortuatly I have taken over responsability of my company web site which is hosted on a linux server and is currently pure html/javascript. The local test server is a windows server.
I wish to create a form script that will mail content of a form to a fixed e-mail recipient using CGI perl. Then redirect to a given page. I only have a couple of hours to do it. Please see form on page
thanks in advance for your help.

Angus
 
Good luck getting this done in a few hours! If you have the Net::SMTP and CGI modules installed on your linux box then you're in good shape. These two modules will make your life much easier. CGI will allow to easily get the values in your form's fields and Net::SMTP will do the sending of the mail.

Here's the links to their docs:

You can also search the web for prewritten scripts that you could modify to suit your needs. I saw a couple recently called sendmail that shouldn't be too hard to modify.

Kevin
A+, Network+, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top