send information question

d3m0nicp3nguin

New member
Joined
Jun 15, 2009
Messages
1
Programming Experience
Beginner
Hello everyone, I'm new here as everyone can tell. I would like to know....... Is there anyway you can send information back to the original creator of the program? Here is a quick example- I made a little program that gives you general information about your computer, when you click a button it sets the text box to specific information. One of the text boxes gives you the Version of your OS. I would like to know if there is a way to send the information in that text box back to me when someone clicks it and they are connected to the internet. FYI I would tell the person who clicks it before so that I am not stealing information, plus what is there to steal from a simple program I made. Thank you in advance to who ever can gi ve me any help on this matter. I hope to hear from someone soon. :)
 
There are various ways but probably the most likely option would be email. You can use use the System.Net.Mail.MailMessage class to send it yourself or you can call Process.Start and pass a mailto URL to use the user's own email client. Please don't ask how without having searched first because there are plenty of examples available.
 
you could also write an ASP page to collect the details and then connect to it using an HttpWebRequest - it may be more likely to be allowed out of a firewall than email sent on behalf of a user

example, make a ReportStats.aspx that stores the variables from the get request in a database on the server, then just connect to this url in the client:

http://your_server.com/ReportStats.aspx?osversion=WinXP

etc

Note, it gets an instant response so you can use it to check for porogram updates etc
 
Back
Top