Forum Moderators: travelin cat
$mailprog = '/usr/lib/sendmail -i -t';
@referers = ('scriptarchive.com','p************s.co.uk');
@recipients = &fill_recipients('******@******.com');
@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT');
i have been advised the following:
"it appears the FormMail.pl script contained Windows characters. We fixed the problem by running the script through 'dos2unix'"
but ive tried this and still can't get it to work (the coding looks exactly the same to me)
can anybody help?
which windows characters are contained and how do i change them?
any help will be greatly appreciated
Eventually, I telnet-ed into my webserver and opened the file up there with EMACS. It was then blindingly obvious what was wrong. There were CTRL-Ms on some of the password strings, and these were causing it to choke.
This might not help at all, I'm quick to say, but it might be prudent to see what actually IS on the webserver using an editor native to the webserver...
DerekH