Sending attachments to clients
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Tuesday, July 3, 2001 01:18 AM

I have a servlet-based webmail application, and my problem is the following:

When I send a file attachment to the client browser using ServletOutputStream, the name of the 'file' is changed into the name of the servlet ( for example, if the filename is 'file.zip' its changed to 'mail.zip', coz my servlet url is 'http://...../.../servlet/mail').

How can I correct this? Or should I take a completely different approach to sending files to the client? I obviously don't want to link directly to the file on the server, but instead go via the servlet.

Thanks, Jonas

Re: Sending attachments to clients

Posted By:   John_Zukowski  
Posted On:   Tuesday, July 3, 2001 09:40 AM

I'm missing what the issue is here with regards to JavaMail. JavaMail doesn't send responses from a servlet. Your JavaMail API usage stops once you've gotten the content of the message. Check the Servlets FAQ for how to do what you are after. It isn't a JavaMail issue.
About | Sitemap | Contact