質問

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)

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top