upload e-mail attachment from client????
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   eltho_john
Posted On:   Monday, August 6, 2001 12:17 AM

I had writtern a servlet prog which send mail with attachment of a file.
If i access the servlet from another pc while sending , it is looking the local path obviously i will get the file not found error.

how to solve this ?
guide me !

thanks

Re: upload e-mail attachment from client????

Posted By:   John_Zukowski  
Posted On:   Tuesday, August 7, 2001 03:57 PM

Just look in the servlet FAQ for how to upload a file.

Re: upload e-mail attachment from client????

Posted By:   Naveed_Azhar  
Posted On:   Monday, August 6, 2001 12:50 AM

Hello there

You can use upload component available at http://www.servlets.com/cos/index.html to upload file on the server. You can then use local filenames to send files as attachment.

Naveed Azhar

naveed@hotmail.com

Re: upload e-mail attachment from client????

Posted By:   Joe_Pollard  
Posted On:   Monday, August 6, 2001 12:46 AM

There is a nice explaination of this, including full source code in Chapter 13 of Que Special Edition, using Java Server Pages and Servlets (Wutka, Mark).



Because of copyright, I obviously cannot type the code in here, but I suggest you drive up to B&N and read listings 13.2-13.5 for good example code and read the section surrounding those examples for good explaination.



Hope that helps,

-Joe
About | Sitemap | Contact