Please help me. I can't transform the HTML file to a string variable. I tried this but in WCF doesn't work. Thanks so much.
/// another service
SWCorreoServicioClient cMail = new SWCorreoServicioClient();
string subject = "test";
string body = string.Empty;
// This line doesn't work
body = File.ReadAllText(HttpContext.Current.Server.MapPath("~/Doc/index.html"));
cMail.sendMail=("mailto@example", subject, body);
I found a solution... Instead
I made this:
And that was all. :)