Hello.
I am using a template to create the body for an email, but unfortunately the translate tags are not being processed, so the email looks a bit rubish. This is what is being done:
Area currentArea = Area.GetAreaById(areaId);
var bodyTemplate = new Template(currentSettings.Where(s => s.Key == Setting.REGISTRATION_TEMPLATE).First().Value.Replace("/Templates/", ""), currentArea.Culture);
And then further down there is this
mail.Body = bodyTemplate.Output();
return EmailHandler.Send(mail);
This is being used in an Ajax call, not sure wheter that is relevant or not. It is getting the right template, but the contents are not right. The Dinamycweb version is 8.5.1.17.
Any ideias on what might be missing?
Thanks.