how can i make a form to upload a file to be sent through e-mail?

I want to make a text firled that students can input their e-mail address and then there will be a browse button to search for a file then a send button to send that file to thier e-mail address.   Im hoping to work with either java or html.  Because the server here does not support php or anything like that,  but I could also do it in flash uning action script.  
Who is Participating?
Koma666Connect With a Mentor Commented:
Here is an howto for uploading a file by mail:

here is a collection of upload libs:

Here is an example for sending an email:

You can find solutions for your questions by simply using google with the search terms java mail and java upload.
All Courses

From novice to tech pro — start learning today.