Welcome to WebmasterWorld Guest from 22.214.171.124
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
What are you using to ftp? You may have it configured incorrectly. You should send it as text only. You may not be able to actually "see" any characters as it could be the line breaks that are causing the problem...
FYI, we use GoLive to edit the scripts, but use Fetch to FTP.
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...