Esempio n. 1
0
        private void LoadMailTemplate(MailTemplateConfig mailTemplateConfig)
        {
            IMailTemplate template = _mailTemplateFactory.GetMailTemplate();

            template.IsBodyHtml = mailTemplateConfig.IsBodyHtml;
            template.Name       = mailTemplateConfig.Name;
            template.Subject    = mailTemplateConfig.Subject;
            template.Body       = mailTemplateConfig.Body;
            _options.Template.AddPrototype(template);
        }
Esempio n. 2
0
        private void LoadFileMailTemplate(MailTemplateConfig mailTemplateConfig)
        {
            IFileMailTemplate template = _mailTemplateFactory.GetFileMailTemplate();

            template.IsBodyHtml = mailTemplateConfig.IsBodyHtml;
            template.Name       = mailTemplateConfig.Name;
            template.Path       = mailTemplateConfig.Path;
            template.Subject    = mailTemplateConfig.Subject;
            _options.Template.AddPrototype(template);
        }