C#: Create a simple SMTP email with HTML body - …
In this example, we used IsBodyHtml attribute to notify mail body can be an HTML string. Complete code is shown below. public static bool SendEmail(string host, int port, string username, string password, string fromAddress, List<string> …
Accessing the HTML Body as an Email Message Body
25.02.2021 · Debugging and Checking the Email Body: Step 1: Debug the application Step 2: Now at the Mail Body, we can check the HTML Body attached as an Email Body.Insert a breakpoint on rowcommand and check out the mail …