Email must be send directly from form? Your browser must be properly configured - main problem
<form action='mailto:address@somewhere.com' method='post' name='myfrm'
+ enctype='multipart/form-data'>
<input type='file' name='file1'>
<input type='submit' name='submit' value='send email'>
</form>
I suggest to use perl script on server side.Web servers are usually properly configured, but web browsers not...
<form action='emailsend.pl' method='post' name='myfrm' enctype='multip
+art/form-data'>
...
For simple sending email with attachement is usable high level module Mail::Sender