I want to assign mail body from razor file Instead of using direct HTML string
I tried the following but no luck:
string _template = File.ReadAllText("Components/Emails/template.razor");mail.Body = _template;Any help please?Thanks in advance
I want to assign mail body from razor file Instead of using direct HTML string
I tried the following but no luck:
string _template = File.ReadAllText("Components/Emails/template.razor");mail.Body = _template;Any help please?Thanks in advance