Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (168.96 KB, 3 trang )
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 CreateBody
5. .
CSHTML file
-
Just
what
normal razor file. With Model is
we pass in function
CreateBody