I am trying to create a function which sends a mail to the user. I am using MailMessage and sending a htmlbody back, and inside that the html body i want to insert some dynamically created data. My html is saved inside a string,
public static string HtmlBody = @"<html><body><p>Following mail contains the test results for the following test id {0}</p></body></html>";
since i am using @ i cant use string.format. My function works, meaning that the html is valid and i can send the email but i cant insert useful data inside the html.