public static string generateEmailBody(String strTemplateName, String strIFAName, String strClientName, String strPortfolioName, String strContactNo, String strComment, string strCompanyName, string strSwitchID) { clsEmail.Template objTemplate = new clsEmail.Template(null, strTemplateName); String strBody = objTemplate.propBody; strBody = strBody.Replace("{%param_IFAName%}", strIFAName); strBody = strBody.Replace("{%param_ClientName%}", strClientName); strBody = strBody.Replace("{%param_PortfolioName%}", strPortfolioName); strBody = strBody.Replace("{%param_ContactNo%}", strContactNo); strBody = strBody.Replace("{%param_Comment%}", strComment); strBody = strBody.Replace("{%SwitchID%}", strSwitchID); strBody = strBody.Replace("{%Company%}", strCompanyName); //return HttpUtility.HtmlDecode(strBody); return strBody; }
public static string generateEmailBody(String strTemplateName, String strIFAName, String strClientName, String strPortfolioName, String strContactNo, String strComment, string strCompanyName, string strSwitchID) { clsEmail.Template objTemplate = new clsEmail.Template(null, strTemplateName); String strBody = objTemplate.propBody; strBody = strBody.Replace("{%param_IFAName%}", strIFAName); strBody = strBody.Replace("{%param_ClientName%}", strClientName); strBody = strBody.Replace("{%param_PortfolioName%}", strPortfolioName); strBody = strBody.Replace("{%param_ContactNo%}", strContactNo); strBody = strBody.Replace("{%param_Comment%}", strComment); strBody = strBody.Replace("{%SwitchID%}", strSwitchID); strBody = strBody.Replace("{%Company%}", strCompanyName); //return HttpUtility.HtmlDecode(strBody); return(strBody); }