richard,
a few things could have caused this, so i'm not quite sure what exactly is happening. however, i'm running the same thing on my box, so i'll tell you how i've got it set up:
i'll assume for the purposes of this that you're trying to run the script from the 'primary' directory, and not one of the ibays.
put the script in the /home/e-smith/files/primary/cgi-bin directory, set it up according to the documentation that came with the script and make sure that you have execute permissions on the file (try chmod 755 FormMail.pl).
also make sure that you are calling it correctly from the web page.
if you still can't get it working, e-mail me and we'll try and get it sorted.
zac