Esempio n. 1
0
 public EmailBase(MailTMLConfigInfo mailTml, MailConfigInfo mailConfigInfo)
     : this(mailConfigInfo)
 {
     _messageRender  = new MessageRender();
     subjectTemplate = mailTml.MailTitle;
     contentTempdate = mailTml.MailContent.Text;
 }
Esempio n. 2
0
 static TMLForgetConfigManager()
 {
     m_configinfo    = null;
     filename        = null;
     m_fileoldchange = File.GetLastWriteTime(DefaultConfigFileManager.ConfigFilePath);
     m_configinfo    = (MailTMLConfigInfo)DefaultConfigFileManager.DeserializeInfo(DefaultConfigFileManager.ConfigFilePath, typeof(MailTMLConfigInfo));
 }
 public EmailForgetPassword(MailConfigInfo mailConfig, MailTMLConfigInfo tmlConfig, System.Collections.Generic.Dictionary <string, string> renderVals) : base(tmlConfig, mailConfig)
 {
     base.Render.RegisterVariable("reportNO", renderVals["reportNO"]);
     base.Render.RegisterVariable("userName", renderVals["userName"]);
     base.Render.RegisterVariable("url", renderVals["url"]);
     base.Render.RegisterVariable("mail", renderVals["mail"]);
     base.Render.RegisterVariable("sitename", renderVals["sitename"]);
     base.Render.RegisterVariable("reason", renderVals["reason"]);
 }
 /// <summary>
 /// 初始化文件修改时间和对象实例
 /// </summary>
 static TMLForgetConfigManager()
 {
     m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath);
     m_configinfo    = (MailTMLConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(MailTMLConfigInfo));
 }