details: /erp/devel/pi/rev/b38da276333e
changeset: 11618:b38da276333e
user: Egoitz Castillo <egoitz.castillo <at> openbravo.com>
date: Wed Apr 20 15:54:21 2011 +0200
summary: Fixes issue 0016385: The text of the mails sent from openbravo does
not
diffstat:
src/org/openbravo/erpCommon/businessUtility/EMail.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 7cb2fd507983 -r b38da276333e
src/org/openbravo/erpCommon/businessUtility/EMail.java
--- a/src/org/openbravo/erpCommon/businessUtility/EMail.java Wed Apr 20
11:36:24 2011 +0200
+++ b/src/org/openbravo/erpCommon/businessUtility/EMail.java Wed Apr 20
15:54:21 2011 +0200
@@ -259,10 +259,10 @@
// Simple Message
if (g_attachments == null || g_attachments.size() == 0) {
if (g_messageHTML == null || g_messageHTML.length() == 0)
- g_smtpMsg.setContent(getMessageCRLF(), "text/plain");
+ g_smtpMsg.setContent(getMessageCRLF(), "text/plain; charset=UTF-8");
else
g_smtpMsg.setDataHandler(new DataHandler(
- new ByteArrayDataSource(g_messageHTML, "text/html")));
+ new ByteArrayDataSource(g_messageHTML, "text/html;
charset=UTF-8")));
if (log4j.isDebugEnabled())
log4j.debug("setContent(simple) " + getSubject());
@@ -271,9 +271,9 @@
MimeBodyPart mbp_1 = new MimeBodyPart();
mbp_1.setText("");
if (g_messageHTML == null || g_messageHTML.length() == 0)
- mbp_1.setContent(getMessageCRLF(), "text/plain");
+ mbp_1.setContent(getMessageCRLF(), "text/plain; charset=UTF-8");
else
- mbp_1.setDataHandler(new DataHandler(new
ByteArrayDataSource(g_messageHTML, "text/html")));
+ mbp_1.setDataHandler(new DataHandler(new
ByteArrayDataSource(g_messageHTML, "text/html; charset=UTF-8")));
// Create Multipart and its parts to it
Multipart mp = new MimeMultipart();
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits