internal string GetEmailBody(string strBody, int OrganizationID,string Path) { Template eTemplate = new Template(); String sPath = Path; //String sPath = Path; bool doesFolderexists = eTemplate.SetFolderPath(sPath); if (doesFolderexists) { int isValidTemplate; if (OrganizationID == 1) { isValidTemplate = eTemplate.LoadTemplate("MMMsg.xml", true); } else if (OrganizationID == 2) { isValidTemplate = eTemplate.LoadTemplate("YRMsg.xml", true); } else if (OrganizationID == 3) { isValidTemplate = eTemplate.LoadTemplate("DTFSMsg.xml", true); } else if (OrganizationID == 4) { isValidTemplate = eTemplate.LoadTemplate("DXCSMsg.xml", true); } else { isValidTemplate = eTemplate.LoadTemplate("MainMsg.xml", true); } eTemplate.SetVar("BODYHTML", strBody); } return eTemplate.GetBody(); }