|XP is just a number|
Re: Setup problemby Rhys (Pilgrim)
|on Sep 05, 2004 at 13:36 UTC||Need Help??|
Okay, I see several possible problems here. First, though, some protocol issues:
1) protocol, not protocall
We really need the answer to 4) before we can help you. What happens when the form is submitted? Also, if you log on to the Web server via command line, what happens if you do:
perl -wc ./AlphaMail.pl
Lastly, let's confirm a few things for you:
1) /usr/sbin/sendmail is correct for $MailProgram.
2) As long as you used only WordPad or Notepad to edit the file, your mailer should not have done anything strange with it. If you're worried about newlines, log on to the Web server via SSH (or - egad! - Telnet) and run pico -w AlphaMail.pl or, if they don't have pico, try nano -w AlphaMail.pl. Once you have the file open, press Ctrl-O, Enter, Ctrl-X. If you had any newline/carriage return weirdness, it'll be gone.
3) All of the other variables in the 'configurable' part of the script are just strings used to construct the messages, so it doesn't really matter if they're correct or not.
So the only thing that comes to mind is, if you log on to the Web server and run /usr/sbin/sendmail -t, what does it do? If nothing appears to happen, but you don't get your prompt back, that's probably good. (Press Ctrl-C to abort sendmail.) If not, what happens instead?
Also, what did you use to FTP the file up to the server? Windows' command-line FTP util? Did you remember to use binary mode (type 'bin')? If not, you should send the file again (just overwrite the previous copy), making sure to use binary mode.
Update: Added suggestion re: binary mode FTP.