File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes streams in javamail Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "streams in javamail" Watch "streams in javamail" New topic
Author

streams in javamail

Karthik Iyer
Greenhorn

Joined: Sep 12, 2001
Posts: 2
Hi
I was using an SMTP mail program along with an UUEncoder class, that made it possible to pass a HTML formatted string as a parameter. This string will be converted into a html page and sent as an attachment with the email. However when i migrated to JavaMail, i found that the only way to send an attachment was if we had the file physically present in a folder (FileDataSource accepts a file name or a file object as a parameter).
Is there anyway that i can circumvent this and send a string as an attachment by writing it into a stream or something, so that the creation of the physical file in a folder can be avoided.
Thanks
 
 
subject: streams in javamail
 
Threads others viewed
send attachment Using JSP with JavaMail
JAVAMAIL
How to save html output of jsp into a file
how to send more than one attachment with javamail
Mime_pdf as an attachment
developer file tools