CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> Java

 attaching a file to mail in struts

Print topic Send  topic

Author Message

Posts: 8
Posted: 12/01/2006, 4:24 AM


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
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.
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.