We are glad to have you here. We have a naming policy at JavaRanch. Your displayed name must consist of a first name (or an initial), a space, and a family name (in that order) and not be obviously fictitious. Please take a moment to change it, which you can do right here.
Now coming to your question, the SimpleEmail class has a method setCharset where you can specify the charset for the message content. Try using that method.
Originally posted by Balasubramanian Krishnaswamy: Hi Jai, Thanks for providing the code. This is already used in my Java Program. But still I tried your code.
The subject still appears as ??? :-(.
Any other idea to resolve this?
Best Regards, Bala
What are you using to view the email? Can this application render Russian characters?
Sorry i dont have an answer as to why the subject is not showing up with the right charset. However, i do see similar (if not the same) issues being reported in the Bugzill of Apache Commons Mail Project. I would suggest, you subscribe to their users mailing list and see if any folks from the project can help you out.