Milp
12-02-2002, 03:30 PM
I'm a newbie to CGI and Perl and have been trying to put together a scrpit (FormMail.cgi) to process my e-mail form submissions. So far, nothing has worked. Here's what I have at the moment:
#!/usr/bin/perl
$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('[my e-mail address');
@recipients = ('[my domain name]);
chmod 755 FormMail.cgi
print "Content-type: text/html\n\n";
# Get the form variables
&ReadParse();
$realname = $in{'realname'};
$email = $in{'email'};
$subject = $in{'subject'};
$comments = $in{'comments'};
I get an error page when I submit something with the form.
I'd be very grateful if someone could give me a basic script that will work, or point out what is wrong with the above. Please help!
Eamonn
#!/usr/bin/perl
$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('[my e-mail address');
@recipients = ('[my domain name]);
chmod 755 FormMail.cgi
print "Content-type: text/html\n\n";
# Get the form variables
&ReadParse();
$realname = $in{'realname'};
$email = $in{'email'};
$subject = $in{'subject'};
$comments = $in{'comments'};
I get an error page when I submit something with the form.
I'd be very grateful if someone could give me a basic script that will work, or point out what is wrong with the above. Please help!
Eamonn