This is the Perl Sample page.
Win32 SendMail sample.
These three pieces setup a html form and used the local UW SMTP server to send e-mail to a given user.
The html input form.
The mail processor.
The mail sender