Problem with encoding in email subject | Community
Skip to main content
October 16, 2015
Solved

Problem with encoding in email subject

  • October 16, 2015
  • 2 replies
  • 1032 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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

2 replies

Sham_HC
October 16, 2015

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

smacdonald2008
smacdonald2008Accepted solution
October 16, 2015

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