Message Template Programmatic Access
Hello,
Is it possible to access email message template content programmatically? We didn't see a specific Fluent facade for that.
As an alternative, is there a way to tell the rad editor (HtmlField) to not change the HTML we enter? We currently have a custom form for the admin to edit a simple email template, but the HtmlField seems to alter the HTML that is entered when switching between Design and HTML modes.
Thanks in advance for any help!
--
John
Boyan,
Bump.
Hello,
An email campaign template is actually just a MessageBody with Istemplate property set to true. So you can just say
var myMessageTemlpate = NewslettersManager.GetManager().GetMessageBodies().Where(mB => mB.IsTemplate ==
true
&& mB.Name ==
"MyTemplateName"
).FirstOrDefault();
Boyan,