Beispiel #1
0
 internal Email(EmailTemplate template)
     : this()
 {
     Template = template;
 }
Beispiel #2
0
 public static Email LoadFromAppRelativePath(string filename)
 {
     EmailTemplate template = new EmailTemplate(Environment.CurrentDirectory + "\\" + filename + ".xml");
     return new Email(template);
 }
Beispiel #3
0
 public static Email LoadFromFullPath(string filename)
 {
     EmailTemplate template = new EmailTemplate(filename + ".xml");
     return new Email(template);
 }
Beispiel #4
0
 public static Email Load(string filename)
 {
     EmailTemplate template = new EmailTemplate(ConfigurationManager.AppSettings["EmailTemplatePath"] + filename + ".xml");
     return new Email(template);
 }