Better yet, use the version provided by London Perl Mongers: nms formmail which is vastly improved and more secure than your version. What's more, nms formail is more recently updated... and (based on comparative reputations) far less likely to introduce a bug or security gap in whatever you're using it for.
For future reference (and welcome, BTW, to PM!), I didn't chase either address you gave because
- I'm busy and they're not links as they would have been had you enclosed them in square brackets, per Markup in the Monastery, What shortcuts can I use for linking to other information? and/or Perl Monks Approved HTML tags
...and
- Fixing what's already been fixed very well is a waste (in the form of re-inventing a wheel)
...and
- I already know they're far too long to waste time on (i.e., they are TL, DR material). See On asking for help, How do I post a question effectively? and Writeup Formatting Tips.
Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
- code
- verbatim error and/or warning messages
- a coherent explanation of what "doesn't work actually means.