I know using a formmail script is probably outdated, but I was just wondering what is best to use.
Matts FormMail or NMS FormMail
Most places seem to say that NMS is more secure, but the most recent version of Matt’s script seems to be 2009, whereas latest update to NMS was 2004.
Any thoughts?
Also if I have created a matt form mail with captcha how easy would it be to transfer all that into nms script and can captcha easily be added to nms script?
Some monks thought the code still seemed to have outdated practices, even though the copyright has been updated, and said they would still use the nms version.
Me, I’d look closely at the Perl version used in nms and compare that to your current Perl version. You won’t (shouldn’t) have 5.12 yet but it is in many ways not backwards compatible with older Perls.
A fatal error is produced if VERSION is greater than the version of the current Perl interpreter; Perl will not attempt to parse the rest of the file.
So if one states use 5.8; then one is forcing the use of 5.8 and releases with higher version numbers - both 5.10 and 5.12 would be admissable but 5.6 would not.
Well, I too see an update date on Matt’s page stating “2009”. I’ll ask someone if his update is also better code. And, if you’re starting out new (no old Perl anywhere) I’d use whichever uses the newest version of Perl. Unicode is best supported in version 5.8 and above, for example.
Had a quick look at the source code for these two items and I think I would prefer the NMS script. It appears to cope with UTF-8
as well as iso-8859-* character sets - inlcuding HTML escaping and non-printable character stripping.
Also http://www.scriptarchive.com/nms.html would appear to indicate that Matt hasn’t updated his scripts since 1996 while the nms
scripts are a little younger having been last updated in 2004.
You build the HTML page with the mail form in it and the form action is FormMail.pl. If you are using server side checking of your captcha then
write a wrapper that does your captcha code check, instantiates the FormMail objects and methods as required and indicated in the examples.
If you are using a Javascript based captcha with no server side verification then you can build the HTML accordingly for that.
Browsers won’t care what formmail script you’ve got, but what I wonder is if something for dealing with (example) improved Unicode of 5.12 etc will come out? I’ll try to ask around.