I'm trying to take a web captured form and send it to the mail recipient with its values! The body of the email it's in HTML format. I get the form but without captured values, this is the code i use to achieve this
private string getPage()
{
string strPage = "";
Uri MyUrl = Request.Url;
WebRequest req = WebRequest.Create(MyUrl.AbsoluteUri);
StreamReader stream = new StreamReader(req.GetResponse().GetResponseStream());
System.Text.StringBuilder sb = new System.Text.StringBuilder();
string strLine;
while ((strLine = stream.ReadLine()) != null)
{
// Ignore blank lines
if (strLine.Length > 0)
sb.Append(strLine);
}
stream.Close();
strPage = sb.ToString();
return strPage;
}
I managed to send the page but it doesn't contain the captured values on the fields, I want to mail the page with the captured values on the fields
private string getPage()
{
string strPage = "";
Uri MyUrl = Request.Url;
WebRequest req = WebRequest.Create(MyUrl.AbsoluteUri);
StreamReader stream = new StreamReader(req.GetResponse().GetResponseStream());
System.Text.StringBuilder sb = new System.Text.StringBuilder();
string strLine;
while ((strLine = stream.ReadLine()) != null)
{
// Ignore blank lines
if (strLine.Length > 0)
sb.Append(strLine);
}
stream.Close();
strPage = sb.ToString();
return strPage;
}
I managed to send the page but it doesn't contain the captured values on the fields, I want to mail the page with the captured values on the fields