示例#1
0
        public ActionResult PreviewTemplate(string id)
        {
            dynamic emailView = EmailTemplateService.CreateEmailView(id, null);

            emailView.MessageId = Guid.NewGuid().ToString();
            var template = EmailTemplateService.CreateEmailMessage(emailView);

            return(Content(template.Body as string, "text/html"));
        }