From 620114592c2cc3d5e684b53b1987767054c1e661 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 23 Apr 2008 05:01:04 +0000 Subject: [PATCH] [ 1949329 ] Workflow sendMail doesn't handle html flag in mail template --- base/src/org/compiere/model/MClient.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/base/src/org/compiere/model/MClient.java b/base/src/org/compiere/model/MClient.java index d8daca3840..d3e753b768 100644 --- a/base/src/org/compiere/model/MClient.java +++ b/base/src/org/compiere/model/MClient.java @@ -663,8 +663,7 @@ public class MClient extends X_AD_Client public boolean sendEMail (MUser from, MUser to, String subject, String message, File attachment, boolean isHtml) { - EMail email = createEMail(from, to, subject, message, isHtml); - + EMail email = createEMail(from, to, subject, message, isHtml); if (email == null) return false; @@ -690,7 +689,7 @@ public class MClient extends X_AD_Client * @param email email * @return true if sent */ - private boolean sendEmailNow(MUser from, MUser to, EMail email) + public boolean sendEmailNow(MUser from, MUser to, EMail email) { String msg = email.send(); // @@ -867,7 +866,7 @@ public class MClient extends X_AD_Client } // No From - send from Request if (from == null) - return createEMail (to, subject, message); + return createEMail (to, subject, message, html); // No From details - Error if (from.getEMail() == null || from.getEMailUser() == null