View Single Post
Old 10-03-2002, 08:15 PM   PM User | #1
Red_Punisher
New to the CF scene

 
Join Date: Sep 2002
Location: Parts Unknown
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Red_Punisher is an unknown quantity at this point
Question Error with Javamail attachments

Hi,

I am trying to send an email with an attachment from an HTML form using javamail in a JSP. In testing from my local machine running Apache with JDK 1.3.1, the email and the attachment arrive perfectly, and the "thank you" html page generated by the JSP displays great.

I uploaded the form and JSP page to my web server (Unix with JRUN) and now the email is not sent and I receive the following error on the top of the "thank you" page generated by the JSP:

"javax.mail.SendFailedException: Sending failed; nested exception is:
javax.mail.MessagingException: IOException while sending message;
nested exception is: java.io.FileNotFoundException: C:\file.txt(No
such file or directory)"

I am assuming that there is something different about the way my web server handles file attachments but I can't find any information about how to fix the problem. Any help is greatly appreciated.

Thanks
Red_Punisher is offline   Reply With Quote