How to send mail with template ( net core) 1 Create file cshtml 2 Install RazorEngineCore This is used for convert file cshtml to string so we can use with SmtpClient 3 Send email 4 Function CreateBod.
How to send mail with template (.net core) Create file cshtml Install RazorEngineCore - This is used for convert file cshtml to string so we can use with SmtpClient Send email Function CreateBody CSHTML file - Just what normal razor file With Model is we pass in function CreateBody