in reply to Sending a mail with Perl, nah.. the same and same question...
To whom are you sending the mail?
Also, you do not properly protect your script against malicious input and your script can easily be used to send arbitrary mail to arbitrary recipients. I won't tell you what, because that might result in you just filtering out bad input instead of only allowing specific, known good input. Please think long and hard about what kinds of input you want to allow, and write code to only allow that specific kind of input and reject all else.
Also, consider using MIME::Lite or one of the Email modules instead of piping to sendmail yourself.
Update: Also consider just using a well-known, good formmail script.
|
|---|