Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

MIME::Lite and CGI

by peschkaj (Pilgrim)
on Oct 12, 2003 at 21:08 UTC ( [id://298715]=perlquestion: print w/replies, xml ) Need Help??

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

Replies are listed 'Best First'.
Re: MIME::Lite and CGI
by thraxil (Prior) on Oct 12, 2003 at 21:32 UTC
Re: MIME::Lite and CGI
by virtualsue (Vicar) on Oct 12, 2003 at 21:25 UTC
    Have you tried clearing $ENV{PATH}?
Re: MIME::Lite and CGI
by peschkaj (Pilgrim) on Oct 12, 2003 at 21:37 UTC
    Thank you both, I knew that I was missing something relatively simple.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://298715]
Approved by virtualsue
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found