[ 1949329 ] Workflow sendMail doesn't handle html flag in mail template

This commit is contained in:
Heng Sin Low 2008-04-23 05:01:04 +00:00
parent 536349d69f
commit 620114592c
1 changed files with 3 additions and 4 deletions

View File

@ -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