This simple CGI script will use SendMail.pm module to send the submitted data. Instead of using sendmail program, it's using Socket to connect to the SMTP server, so it can be used under UNIX and Windows platforms without any big modification on the script.