Hey everyone, I'm back. I haven't been programming for some time now although I still remember quite a few. I need to refresh my memory, schools been in the way for quite awhile because it's extremely difficult (private school) Anyways back to the point, I'm trying to get a app to send all the form data to an email in the background process. How can this be done?
For example:
Follow everything I do and learn with Microsoft Visual Studio on my new Blog - Nick's Visual Studio Blog
Ah, thanks. It's really helpful, especially since it's a video!
Follow everything I do and learn with Microsoft Visual Studio on my new Blog - Nick's Visual Studio Blog
This is a function I use to send form data inside the web;
I'm not sure if it will help or not.Code:string post_form_data(string url, string postData)
{
WebClient client = new WebClient();
//client.Headers.Add("Cookie", cookie);
client.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
byte[] byteArray = Encoding.ASCII.GetBytes(postData);
byte[] responseArray = client.UploadData(url, "POST", byteArray);
return Encoding.ASCII.GetString(responseArray);
}
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks