#!/usr/local/bin/perl -w use CGI; # load CGI routines use Mail::Sendmail; $q = new CGI; @names = $q->param; $name = $q->param('name'); $company = $q->param('company'); $address = $q->param('address'); $city = $q->param('city'); $state = $q->param('state'); $zip = $q->param('zip'); $phone = $q->param('phone'); $fax = $q->param('fax'); $email = $q->param('email'); $comments = $q->param('comments'); $file = $q->param('file'); print $q->header, # create the HTTP header $q->start_html(-title=>'Email Sent', -BACKGROUND=>'http://65.108.100.28/images/bkg3.jpg', -LINK=>'blue', -ALINK=>'maroon'), # start the HTML "

Thank you

", "Your Email has been sent to stu96art@yahoo.com", # level 1 header '

', '



', "

Click here go to the home page

", "

Click here return to the contact page

", "

The values you sent were

", $q->h2("NAME: $name\n
COMPANY: $company\n
ADDRESS: $address\n
CITY: $city\n
STATE: $state\n
ZIP: $zip\n
PHONE: $phone\n
FAX: $fax\n
EMAIL: $email\n
COMMENTS: $comments\n
"), $q->end_html; # end the HTML use MIME::Lite; $msg = new MIME::Lite From =>'technicu@technicut.net', To =>'stu96art@yahoo,com', Cc =>'some@other.com, some@more.com', smpt =>'64.176.60.59', Subject =>'A message with 2 parts...', Type =>'multipart/mixed'; attach $msg Type =>'TEXT', Data =>"NAME: $name\n COMPANY: $company\n ADDRESS: $address\n CITY: $city\n STATE: $state\n ZIP: $zip\n PHONE: $phone\n FAX: $fax\n EMAIL: $email\n COMMENTS: \n \n $comments"; attach $msg Type =>'image/gif', Path =>"$file", Filename =>"$file"; $msg->send;