This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Sending multipart message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sending multipart message" Watch "Sending multipart message" New topic
Author

Sending multipart message

carl jensen
Greenhorn

Joined: Nov 08, 2000
Posts: 11
Can I create and send a multipart message with a servlet. I have looked throught the O'Reilly Servlets book and see how to receive and process a message, but nothing about creating one. Specifically, I'd like to create and send the multipart message with one servlet and process it with another.
Thanks!
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

You can certainly write your own http requests, and here is a thread that will give you what it should look like:
http://www.coderanch.com/t/353686/Servlets/java/Uploading-file-server-oreilly-MultiPartRequest
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Sending multipart message
 
Similar Threads
JavaMail:Why can't a recipient using Lotus Notes see the attachment of my mail
java.io.FileNotFoundException
Upload files from client
How to send mail to more than one recipients
Sending Mail via socket - attachments?