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