Domanda

I am trying to send an html (MIME) email from xpages to my inbox which i open via lotus notes client (8.5.3). The email has greek text in the subject and body. Body text appears normally in greek but the subject text does not. In the past i have received emails with subject in greek without any problems. How can i change the encoding in my code?

Check these 2 links to see the email library i use: http://www.bleedyellow.com/blogs/m.leusink/entry/send_html_mails_from_an_xpage_with_only_5_lines_of_code?lang=en_us

(link to older version of this library removed: latest version with a fix for this question can be found here)

È stato utile?

Soluzione

You will need to modify the library to include following code for subject header:

mimeHeader = mimeRoot.createHeader("Subject"); 
mimeHeader.addValText(this._subject, "UTF-8"); 

PS: I suggest you report this to author, so it can be fixed.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top