Commit a30ecd2f authored by Liang Ding's avatar Liang Ding

邮件标题乱码问题由框架处理

parent 9abf7295
...@@ -20,7 +20,6 @@ import java.io.IOException; ...@@ -20,7 +20,6 @@ import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Date; import java.util.Date;
import javax.inject.Inject; import javax.inject.Inject;
import javax.mail.internet.MimeUtility;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringEscapeUtils;
import org.apache.commons.lang.time.DateFormatUtils; import org.apache.commons.lang.time.DateFormatUtils;
...@@ -56,7 +55,7 @@ import org.json.JSONObject; ...@@ -56,7 +55,7 @@ import org.json.JSONObject;
* Comment management service. * Comment management service.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.5, Jan 3, 2014 * @version 1.0.0.6, Jan 7, 2014
* @since 0.3.5 * @since 0.3.5
*/ */
@Service @Service
...@@ -222,7 +221,7 @@ public class CommentMgmtService { ...@@ -222,7 +221,7 @@ public class CommentMgmtService {
mailBody = COMMENT_MAIL_HTML_BODY.replace("{articleOrPage}", "Page"); mailBody = COMMENT_MAIL_HTML_BODY.replace("{articleOrPage}", "Page");
} }
message.setSubject(MimeUtility.encodeText(mailSubject, "UTF-8", "B")); message.setSubject(mailSubject);
final String commentName = comment.getString(Comment.COMMENT_NAME); final String commentName = comment.getString(Comment.COMMENT_NAME);
final String commentURL = comment.getString(Comment.COMMENT_URL); final String commentURL = comment.getString(Comment.COMMENT_URL);
String commenter; String commenter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment