on 11-15-2006 8:04 AM
Dear All,
I have to send the mails in Arabic of content type text/html.
For this I ve tried 2 ways
1. setContent(MailMessage, text/html);
This method gives me output as ???? instead of Arabic text.
2. setText(MailMessage,utf-8);
This methods gives the text correctly, but displays in text/plain format.
Can any one help me in getting the Arabic text in text/html.
Thanks in Advance
Anish
Hi Anish,
The method setText(MailMessage,utf-8) - works only with MIME type text/plain.
Try using the setContentLanguage(String language[]) method. And also make sure that you are using MimeMessage type.
Regards
Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.