I've been following this list with the digest version for some time now and have started using the -T swith in all of the scripts that I write now. Unfortunately, I don't know how to send e-mail with the -T switch turned on. I would normally do it like this...
/usr/bin/perl -wT use strict; my($name) = "John"; my($mailprog) = '/usr/sbin/sendmail'; my($recipient) = '[EMAIL PROTECTED]'; open (MAIL, "|$mailprog -t"); #The script fails here print MAIL "To: $recipient\n"; print MAIL "From: $name\n"; print MAIL "Subject: Test\n\n"; format MAIL = Name: @<<<<<<<<< $name *********************************************************************** . write (MAIL); close(MAIL); The log file gives me this error message... Insecure $ENV{PATH} while running with -T switch at /home/rob/cgi-bin/completeOrder.cgi line 8. If I take the -T off, it works fine but I'm hesitant to do that. Thanks, Rob [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]