Pound sign is not working in mail content using java.mail package?

Two possibilities First, are you sure that emsg. Content contains non-munged data? If it's corrupt before you get to this code, you're already out of luck Second, if the content is fine, try using MimeBodyPart.setText() instead: if (emsg.

IsPlain) { messageContentPart. SetText(content, "UTF-8", "plain"); } else { messageContentPart. SetText(content, "UTF-8", "html"); }.

Two possibilities. First, are you sure that emsg. Content contains non-munged data?

If it's corrupt before you get to this code, you're already out of luck. Second, if the content is fine, try using MimeBodyPart.setText() instead: if (emsg. IsPlain) { messageContentPart.

SetText(content, "UTF-8", "plain"); } else { messageContentPart. SetText(content, "UTF-8", "html"); }.

– dkarp Jan 13 at 15:54 your right. Mesg. Content was corrupted.

Mesg. Content is from file.So reading from a file itself is wrong. I found and fixed.

Ans: read bytes from file and return new String(btyes,"utf-8") ; – kumar kasimala Jan 16 at 3:02.

I think that although your set content-type charset UTF-8 you do not write UTF8 stream. Are you using BufferedWriter? Check whether you pass correct charset to its constructor.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions