ramareddypalla
Posts: 8
|
Posted: 12/01/2006, 4:24 AM |
|
hi,
I am using struts framework. My problem is attaching a file to mail. I am able to upload the file using org.apache.struts.upload. FormFile.
my code is
ActionClass
PostForm prform = (PostForm)form;
FormFile myFile = prform.getTheFile();
String contentType = myFile.getContentType();
String fileName = myFile.getFileName();
But i dont know how to attach this file to mail. Please help this is very important part in my project. Want to use jakarta commons mail package.
|
|
|
|