Is it possible to add into C#/MVC Web Application?
tayyab48 opened this issue · 2 comments
tayyab48 commented
Hi,
Is it possible to add into C#/MVC Web applications.
If yet, can you please suggest a way out?
cohitre commented
We don't have a way to embed the editor into other applications at the moment. Can you elaborate about what you're trying to accomplish?
dariomrk commented
Hi @tayyab48,
Here's how I recently utilized the EmailBuilder in conjunction with an ASP.NET Core app:
- Add a templating engine to your project:
I used the RazorLight templating engine / library, but any templating engine should work fine (there's plenty of options for .NET). - Create an email template:
Use this tool to generate your email template, then copy the generated HTML output. - Adjust the HTML to meet your specific needs:
I separated the HTML into a common layout and the body.
For dynamic content, I leveraged the templating engine to inject data where needed.
Hope this helps!