> I have your book. It's good. However, I couldn't find
> any info about downloading a file attachment in email.
> I am creating a servlet with e-mail functionality
> (similar to yahoo/hotmail).
Ah, you asked before about file upload. That's in the first edition.
File download is in the upcoming second edition. :-)
Short story is that if you use a servlet like ViewFile and just change
the content type to something like application/octet-stream, the browser
will generally ask the user where to save the file. Except IE... It's
too damn smart to listen to the server and will do whatever it wants
with the content. Like if you send a GIF, IE will render it as a GIF no
matter what you do on the server side. IE also ignores the
Content-Disposition header for GIFs. Stupid Microsoft arrogance.
-jh-
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html