Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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/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
Node Status?
node history
Node Type: perlquestion [id://298715]
Approved by virtualsue
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2018-05-21 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?