dcsimg
how can i send attachments from a web mail
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Javier_Sanchez
Posted On:   Tuesday, April 9, 2002 03:04 PM

im developing a web mail with javamail, but it will be a public web mail

how can i send attachments with the message?

someone told me that i have to upload the files to my server and then send it

if is correct how can i do it, anyway how can i do this?


Thanks

Re: how can i send attachments from a web mail

Posted By:   Laurent_Mihalkovic  
Posted On:   Tuesday, April 9, 2002 11:07 PM

hi there

you can look at hotmail for an example user interface. As for the code itself, the servlet should save the file(s) locally using the jsessionid or some other unique id to associate it to the user (the servlet API has a method for allocating temporary files), then you gather the rest of the data and generate the message.
As for sending an email with attachment, you can look at this page which has a nice example, as well as multiple links to other sources of information. You also browse through the FAQ here on jguru. John Zukowski is doing a great job maintaining it.

cheers

About | Sitemap | Contact