public SendEmail(SendEmailType?toUse) { if (toUse != null) { ConfigNode = XmlConfig.GetEmailConfig((SendEmailType)toUse);//获取模板的节点内容 Subject = ConfigNode.Subject; Body = ConfigNode.Body.HtmlDecode(); } UseEmailTemplate = true; }