Thanks for pointing that out. Yes, NMS FormMail - the script used by the OP - is (one of) the scripts provided by some programmers (I believe mostly from Londom.pm) to replace the truly awful scripts from Matt. It's still being actively maintained and should be free (or at least, much more free) of the security holes in Matts scripts.
See http://nms-cgi.sourceforge.net/