Guys,
I'm trying to change a place holder in an external HTML template then email as a body.
I can get this working fine but I'm struggling to get it to read an external html file from url with streamreader.
I'm assuming I would need to use WebRequest instead of streamreader to get the remote html file?
below is my code:
using (StreamReader reader = new StreamReader(http://mytemplate))
{
body = reader.ReadToEnd();
}
body = body.Replace("{CompanyName}", companynameTextBox.Text);
Manas MohapatraPosted Sep 25, 2015, 8:04 AM
mike DelvottiPosted Sep 25, 2015, 7:50 AM
Hi, Thank you - yes I got it working with parts of your code.
Manas MohapatraPosted Sep 24, 2015, 2:23 PM