Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

MIME::Lite and CGI

by peschkaj (Pilgrim)
on Oct 12, 2003 at 21:08 UTC ( #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/ 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.


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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2018-12-15 13:42 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (69 votes). Check out past polls.