View Single Post
  #8 (permalink)  
Old 12-08-03, 12:35 PM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
Your syntax looks fine to me:

Code:
[09:25][piper@redhat01:~/public_html/cgi-bin]$ perl -c formail.pl 
formail.pl syntax OK
[09:25][piper@redhat01:~/public_html/cgi-bin]$
One thing I did spot is this:

Code:
$mailprog = 'http://www.m3server.com/home/julie/web/cgi-bin/formmail -i -t';
$mailprog is looking for the system path to sendmail. It's usually /usr/sbin/sendmail but it appears that you are on a windows server. Check with your host and see if they have a sendmail alternative that you can use instead.

Check a couple of things: 1) Make sure you are using the correct copy of formail.pl. Use an absolute path on your form instead of a relative path. 2) Make sure that you actually uploaded the file in ASCII and not binary. I can't remember if makes much of a difference on Windows though.

Other than that, I'm stumped. You're not missing a semicolon in the code you posted, that's for sure.

~Charlie
Reply With Quote