PDA

View Full Version : FormMail Q


zmoker
10-18-2002, 12:22 AM
I am currently doing things by the Lego method and have been succesfully using a FormMail.pl file I found somewhere that is giving me problems at one of the sites I dev. I think it's the way the Host (ReadyHosting, their choice) stores or has perl configured. The file is set to 777. I'm thinking I need to place this off the root instead of HTNL they way it is now?
Anyway, it chokes on this first line:
#!/usr/bin/perl -wT
coming back with an error:
Too late for "-T" option at d:\html\users\kentwrestlingorg\html\cgi-bin\FormMail.pl line 1.
I called readyhosting and they are clueless (Wow, a -T!?). They run W2K Servers if that has any bearing...

Thanks in Advance
-z

Philip M
10-20-2002, 01:33 PM
The -t parameter is included at the point where the mail program is opened, not where the Unix search path is defined, thus:-

# Open The Mail Program
open(MAIL,"|$mailprog -t");

-t instructs the Mail Program to read the recipient list
from the message text. Is that what you desire?


Hope this helps!

zmoker
11-01-2002, 09:35 PM
:)