I am developing a mail landing page. I want to upload html file which I will use as mail body to send email. Currently I am setting mail body like this:
MailMessage mail = new MailMessage();
mail.From = new MailAddress("robin35-908@diu.edu.bd");
mail.To.Add(new MailAddress(MailTo));
mail.Subject = "test";
mail.IsBodyHtml = true;
mail.Body=@"html text with (") replaced with ("") ";
Now my requirement is to input a html file and then use the text as mail body.I want to read the file from the location as the file would be in the same server. So no upload is required. How can I achieve that?