Can user create configurable body of email in umbraco 7.2. I am creating a member registration form using partial view and macro. On successful registeration, I have to send email and I have to put some registration form fields on email body. Can user create configurable template using backoffice site?
Configurable Email Template
Can user create configurable body of email in umbraco 7.2. I am creating a member registration form using partial view and macro. On successful registeration, I have to send email and I have to put some registration form fields on email body. Can user create configurable template using backoffice site?
Hi Faisal,
Welcome to Umbraco Comunity.
You can use richTextEditor or some razor template for that.
We are using razor view now, we are creating view like that :
@inherits Umbraco.Web.Mvc.UmbracoViewPage
In the contact Surface controller we are creating ContactModel and fill data, after that we are rendering view in the code like that :
protected string RenderPartialViewToString(string viewName, object model) { if (string.IsNullOrEmpty(viewName)) viewName = ControllerContext.RouteData.GetRequiredString("action");
And send that html code via email.
Thanks, Alexander
is working on a reply...