First of all I would never suggest using a third-party(remotely hosted) script, especially for formmail, guestbooks, etc.
As you've just mentioned, advertising, etc. It's garbage
There's plenty of free scripts readily available.
What programming flavour is available to you?
ie) php, perl, etc.
Start here
www.hotscripts.com