PDA

View Full Version : form1.cgi


researcher101
03-11-2007, 04:01 PM
I have a form called "form1" and I collect the information from the form and send it to my Domain's E-Mail adress with a cgi script called "form1.cgi". I want to utilize my WebServer's autoresponder capability, however I do not know how to make form1.cgi extract the end user's E-Mail address into a "sent from" or "reply to" field so as my Domain's E-Mail address can know where to send the autoresponse. I am wondering if someone might assist me with this task?

FishMonger
03-11-2007, 07:42 PM
Do you have a form field where the user fills in their email address?

researcher101
03-11-2007, 09:00 PM
Yes I do.
My perl/cgi script parses the form (including the e-mail address field) and uses sendmail to send the information to the me@mydomain.com inbox where I have an autoresponder setup. But for the likes of me I cannot figure out the code that tells sendmail to send to me@mydomain.com using the E-Mail address which the end user added to the email address field in question.

FishMonger
03-11-2007, 10:44 PM
Can you post your "form1.cgi" script?