You should be aware (and wary) that Matt Wrights scripts, and especially the FormMail script, have many security holes. The FormMail script can be used easily to mail spam in your name all over the world.
There are replacements that are more secure and that are programmed in a much better style than the scripts by Matt Wright.
I suggest as a first step that you move over to the NMS scripts as replacements to Matts scripts. As the second step, you should either learn how to use the Perl mail modules from CPAN, as there are Net::SMTP, Mail::Sendmail or other stuff a search or Super Search turns up on "mail" on this site.
As for your strategy of asking questions, the quality of the answers you get depends directly on the quality of your question. turnsteps home node has many good hints, Are there questions to basic? contains a discussion on how we could approach answers, and (again) Super Search will most likely turn up more hints on how to ask good questions that give you the answers you really need.
Here are some shallow hints your question should give to the person :
- The relevant code. Trim this down to the shortest possible code that reproduces the phenomenon, but no shorter. Try to make it that the posted code actually works. The posted code should be similar in form and style to what you actually use.
- Input you gave to your code
- Output you got from your code
- Output you expected from your code
- Resources you have already contacted about your problem (man pages, books, colleagues, other fora), and subsummation of the answers you got there (if any).
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The
$d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider
($c = $d->accept())->get_request(); $c->send_response( new #in the
HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
| [reply] [d/l] |
thanks for the good tips on Matt Wright stuff (and how to get better assistance on Perl debugging) - I have been using Wright's scripts (mostly the FormMail one) for years and had no idea they weren't secure. I just assumed that since you could limit the referring page addresses to your own domain that no one but me could use the script or my mailserver to send emails.
I'll see what I can come up with using the NMS FormMail and hopefully cludge through removing the extraneous text in order to send the shortest possible email.
(BTW if anyone else wants to tell me what chunks of the nms formMail code to remove in order to minimize email length, please do so!)
Thanks again! | [reply] |
| [reply] |