This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use InputStream to contruct an attachment for Java Mail  RSS feed

 
Smitha Cha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Kindly share the code if you have any regd - how we could use an InputStream object to construct an attachment and add it to a message so that an attachment could be send as an email.

I have read and stored the file content in the Input Stream.

Any help would be greatly appreciated.

Thanks.

[ January 22, 2007: Message edited by: Smitha Cha ]
[ January 22, 2007: Message edited by: Smitha Cha ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!