Near the top....
$mailprog = '/usr/sbin/sendmail -i -t';
(Same as on my form mail script to get E-mail from forms.)
Past the middle of the script....
#Open The Mail Program
open(MAIL,"¦$mailprog");
print MAIL "To: $FORM{'email'}\n";
print MAIL "From: pokemon@example.com\n";
print MAIL "Product request for $FORM{'subject'}\n";
print MAIL "At your request you will be contacted when $FORM{'subject'} is ready to order on procduct name. If you did not make this request, reply with blah.....\n";
close (MAIL);
[edited by: jatar_k at 1:22 am (utc) on Mar. 22, 2004]
[edit reason] generalized [/edit]
With -w at the end of the first line I get some errors in su telnet. Here's the errors and then the code at that line.
Use of uninitialized value in read at contact.cgi line 6.
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
Use of uninitialized value in string ne at contact.cgi line 23.
if ($database ne '') {
Use of uninitialized value in string eq at dvd_contact.cgi line 36.
Use of uninitialized value in pattern match (m//) at dvd_contact.cgi line 36.
Content-type: text/html
if ($FORM{'url'} eq 'mailto:' ¦¦ $FORM{'url'}!~ /^(f¦ht)tp:\/\/\w+\.\w+/) {
Use of uninitialized value in concatenation (.) or string at dvd_contact.cgi line 43.
Use of uninitialized value in concatenation (.) or string at dvd_contact.cgi line 43.
Use of uninitialized value in concatenation (.) or string at dvd_contact.cgi line 43.
print <<EOM;
Would any of this keep the E-mail from being sent out? Everything else works.