http://qs321.pair.com?node_id=562223


in reply to Using The Mail::Sendmail module in CGI Script

This is not really answering your question, but I noticed you just blindly use the user's input. Never trust your users! ;-) What if I craft my POST or GET request so that the recipient variable looks something like:

recip1@doma.in\nBcc: recip2@doma.in, recip3@doma.in, recip4@doma.in
Please run some tests over the values you receive, before spitting them to a mail process.

Spammers will love your script ;-)

--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
Re^2: Using The Mail::Sendmail module in CGI Script
by msk_0984 (Friar) on Jul 19, 2006 at 09:00 UTC
    yeah but i am just trying out this program and not yet tried to complete it . But what u have said is that my script is having security risk so how can i enable it.