Anyone on a machine that has Perl5 and allows Berkeley-style socket requests can use this script, which means most systems, not just Windows. Upload the script to the directory where you can run cgis. On Unix systems, do a ' chmod 755 ' on it. If the html file is not in the same directory as the script, change the action statement in the form to point to the script. You can also beautify the html to fit your site's style.
T ake a look at the form items in tgmail.htm.
Note that many smtp servers will refuse to relay mail these days, thanks to abuse from spammers. The former is the page you want users to see when an error occurs, and the latter is the page you want them to see when the send is successful. If you don't assign values to those, the script will return its own versions created on the fly. Y ou can also set default values for these same variables, directly in the script itself . Use any text editor to view the script, read the comments, and assign values to the variables.