This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes attach emails in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "attach emails in JSP" Watch "attach emails in JSP" New topic
Author

attach emails in JSP

m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
Hi All,
I need to be able to allow the end user to attach emails from Outlook to a record when they are editing or adding it. I am not sure how to get started on this any suggestions for documentation or sample code? Thanks!
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Well, Outlook is a client side program - so your users will first have to save the email to a known location, then upload it through a servlet to your server. Then you can attach the file to an email you generate and send with the JavaMail API.

That all sounds a little clumsy though. The easiest way to do it would be to have user cut-and-paste the contents of the email into a textarea in a form and send this with the request to your servlet. If you wanted to drag and drop an email into a form, I've no idea if this is possible, but if it were it would probably need some sort of ActiveX control.

Any of this any use?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: attach emails in JSP