Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
2.1 Final
-
None
-
winXP, jdk1.5, tomcat5.5.9, firerox1.0.6
Description
I tried to send mail with cyrillic content and didn't got it properly.
The solution is simple (if we use UTF-8)
the method :
public void sendMail() throws MessagingException {
needs following changes:
message.setSubject(subject, "UTF-8");
instead of:
message.setSubject(subject);
and
message.setText(body, "UTF-8");
instead of:
message.setContent(body, "text/plain");
This worked for me, but i'm sure there are other solutions about this problem...
btw. MailHandler is nice for now , wouldn't it be nicer if it has more input parameters i.e. header content ???
Checklists
Acceptance criteria