Example #1
0
        public EmailHelper ApplyTemplate(string mailType, TemplatePipeline pipeline)
        {
            var messageToPersonalize = new TemplateMailMessage(_mailConfiguration, mailType);

            if (messageToPersonalize.Loaded)
            {
                var engine = new TemplateEngine(messageToPersonalize, pipeline);
                CurrentEngine = engine;
            }
            return(this);
        }
 public TemplateEngine(TemplateMailMessage provider, TemplatePipeline pipeline)
 {
     TextProvider = provider;
     Pipeline     = pipeline;
 }