You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this mail approach from within an asp.net core project, the mail templates will use the shared (layout) components defined within the web project. As such, unexpected behaviour will result.
This should at least be documented.
Possible approaches in order to resolve:
Try to separate the loaded views, and only load certain view assemblies (or app parts) for the mail dispatcher.
Specifically define which layout file should be used
The text was updated successfully, but these errors were encountered:
The easiest approach for now to get around that is to just rename the shared layout file, for example from _Layout.cshtml to _MailLayout.cshtml, in order to make sure the correct layout will be found, even when using this library in combination with an asp.net core web site.
When using this mail approach from within an asp.net core project, the mail templates will use the shared (layout) components defined within the web project. As such, unexpected behaviour will result.
This should at least be documented.
Possible approaches in order to resolve:
The text was updated successfully, but these errors were encountered: