Expand my Community achievements bar.

SOLVED

Problem with encoding in email subject

Avatar

Level 1

Hello,

I send email in Adobe CQ5 under articles:

http://labs.sixdimensions.com/blog/2012-08-20/sending-email-adobe-cq-api/

But I have this problem:

I have problem with subject encoding. Subject contains this characters "žščěř" and they are shown this - "?" I try to set encoding "email.setCharset("UTF-8");" - in content (email body) is everything OK, in subject it isn't OK. Template is defined as:

From: email@email.cz
Subject: žščěř

žščěř

The man, who write the article said, that it could be bug in Adobe CQ5.

Could you help me?

Thanks.

 

Jan

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Level 10

it is fixed in latest release 5.6.1 & above. CQ5-29560  Another option is plan to upgrade. 

Avatar

Correct answer by
Level 10

Try writing a custom CQ mail service using Java MAIL APi and use encoding functionality.  

http://helpx.adobe.com/experience-manager/using/creating-custom-cq-email-services.html

See this for encoding

http://www.coderanch.com/t/274480/java/java/JavaMail-set-content-utf