Quote Originally Posted by $ATHEES View Post
thanks for your suggestion..Guru
But
I had tried that ,
Now, you see, that would have been useful information to have in your first post. It would be useful to know how the bytes are actually sent, what an example non-functioning message looks like (i.e. the actual complete, constructed message), what bytes are actually being received, what you are using to determine "i not getting the HTMlL format", what is 'it' in "it also considering as Plain text" etc.

The boundary marker you have chosen is poor and could conceivably appear in the text of a part. Apart from that there is nothing that immediately jumps out as fundamentally broken with the code you posted. That code does not send, receive or interpret the received bytes though.