http://www.perlmonks.org?node_id=298715

peschkaj has asked for the wisdom of the Perl Monks concerning the following question:

When I attempt to send an email using MIME::Lite from a CGI page, I see the following error on the command line while I debug:

mail.cgi: Insecure $ENV{PATH} while running with -T switch at C:/Perl/site/lib/MIME/Lite.pm line 2540.

The line of code in question is:

my $msg = MIME::Lite->new( From => "$from_email", Sender => "$from_name", To => "$email", Subject => "pie is good food", Data => "$message_text" );

If anyone has encountered this before, I would greatly appreciate it. I have untained all of my variables and everything looks okay to me.

Thanks,
jeremiah