RazorEmailMessageRenderer class
namespace: Serenity.Extensions assembly: Serenity.Extensions
Renders an email that code builds with the EmailMessage view, in the layout of the emails (~/Areas/Serenity.Extensions/Shared/_EmailLayout.cshtml), which an application can replace with views of the same paths in its own project.
public class RazorEmailMessageRenderer : IEmailMessageRenderer
| parameter | description |
|---|---|
| serviceProvider | The services, for rendering outside a request. |
| httpContextAccessor | Gives the services of the request, when there is one. |
Public Members
| name | description |
|---|---|
| RazorEmailMessageRenderer(…) | Renders an email that code builds with the EmailMessage view, in the layout of the emails (~/Areas/Serenity.Extensions/Shared/_EmailLayout.cshtml), which an application can replace with views of the same paths in its own project. |
| virtual Render(…) |
See Also
- interface IEmailMessageRenderer
- Source: RazorEmailMessageRenderer.cs