when it try attchment file. error is FileNotFoundException in Attchment..... (mail is sending ok) what could be resones..
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Hyder_ali
Posted On:   Monday, December 30, 2002 02:38 AM

sm.setSubject(request.getParameter("subject"));

sm.setContents(request.getParameter("message"));

String f1 = "d:abc.txt";

if(!f1.equals("")){ sm.setAttachment(f1);}

Re: when it try attchment file. error is FileNotFoundException in Attchment..... (mail is sending ok) what could be resones..

Posted By:   John_Zukowski  
Posted On:   Wednesday, January 1, 2003 03:15 PM

FileNotFoundException means exactly what it says: File Not Found. There is no file at d:abc.txt ON THE SERVER where the program is running.
About | Sitemap | Contact