Email with Attachments Servlet

The purpose of this assignment was to:

The description and my solution of the Email with Attachments Servlet -assignment can be viewed and/or downloaded at the bottom of this page.

Encode Type I've used

I've used the com.oreilly.servlet.MultipartRequest class for this assignment. In the form I've set the encode type to multipart/form-data.

Assignment Description

Create a HTML document with a email form. Code a servlet that sends emails with attachments when called by clients using the email form.

At least two arbitrary files should be possible to attach. The email form should have the following fields:

A copy of what was sent should be sent back to the client. If the password is wrong no email should be sent, and the client notified about this.

At the end of every message it should say something about the sender possibly being invalid.

My Solution, Assignment Files

Note: To send mail with the Email with Attachments Servlet you need a password. This is because it easily could be misused for spamming. The code, however, is still free to download and alter in any way you like.

Try the Email with attachments servlet

«  Previous Next  »