SitePoint Sponsor

User Tag List

Results 1 to 11 of 11

Thread: FormMail

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    FormMail

    Hello

    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?

    Thank you in advance for any advice

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy

    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.

    I have no idea what platform you are on but 'perldoc FormMail.pl' under Linux gives the documentation for the nms FormMail.
    I suggest you take a look.
    You can get the nms FormMail.pl source code at http://nms-cgi.sourceforge.net/formm...c1/FormMail.pl .
    They are pretty clear about security holes in Matt's scripts - no disprespect to Matt intended - and there are code examples at
    http://nms-cgi.sourceforge.net/formm....14c1/EXAMPLES .

    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.

    HTH

    Lesley

  3. #3
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    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.

  4. #4
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    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.

  5. #5
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've not installed 5.12 yet and I don't use nms scripts either but I believe there
    is or was a compatibility switch in 5.12 to help run 'legacy' code.

  6. #6
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    I guess you could use the
    'use 5.8' pragma at the beginning...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •