CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> Java

 attaching a file to mail in struts

Print topic Send  topic

Author Message
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.
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 http://support.yessoftware.com.

MS Access to Web

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

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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