Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with using Perl to send emails from the Internet

Status
Not open for further replies.

Proff

Programmer
Dec 15, 2000
6
GB
Hi all,

I am completely new to Perl and will apprecitae any help offered!!

Problem:

I has a web page that will be used as a feedback form page and I'm using the formmail.pl script from My website is hosted by another company and they have assured me that the perl script should run and I've checked with them that their perl program and mail program are in the same locations as in the formmail.pl script. I've set the @referers variable to my domain and it's IP address and I think thats all I need to do to the script (as far as I know).

However when the I press the submit button on the form which should then call formmail.pl I get the "This page cannot be displayed" error. I don't know where to go on this so if anybody has any ideas I'd love to hear them.

Thanks,
Heather
 
If you are editing your code or saving it temporarily or anything on a Win flavored PC and then are moving that code to a UNIX server, you must do two things.
1 - convert the line endings to UNIX flavor. Win text files have a 'new line'
and a 'carriage return' at the end of each line. Unix only wants a 'new line' char.
2 - set the execute bit on the code so it can run.

Both of these tricks are possible with most gui ftp clients.
OR
If you have telnet access to the server,
use 'dos2unix' to convert the line endings and
chmod +x yourfile<return> to set the execute bits.

HTH


keep the rudder amid ship and beware the odd typo
 
ok, thanks for your help so far!

I'm working on the chmod command - I had to talk to my host company about that as it wouldn't let me set the permissions to 755 so hopefully they're going to sort something out for me.

However, and this may well be a stupid question, but how do I change the file to ASCII from binary so that I can get rid of the carriage retrtuns?

Thanks again!
Heather
 
I have it working now!

Thanks for your help!

Heather
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top