• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to send a Picture in Email  RSS feed

 
Rahul Khanna
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing a problem in sending GIF Image through Java mail API.
In the message String I wrote
msg.setText(<b>Hello </b> ;
msg.setContent(messagetext,"text/html"));
.....and later.......
Transport.send(msg)
This is how a normal HTML contents go through Email. But I don't have any Idea on how to send a picture also along with this text.
Plz Help.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!