This little project sends an email by using mailkit. The template of email support HTML and you can add any template of HTML to the partial view which convert a partial view to string of HTML codes.
If you use Gmail as email service, you may encounter an error that says “The SMTP server requires a secure connection or the client was not authenticated”
To solve this problem, you may follow my pdf .
If you want just use partial view to string, you can go to this page.