I want to make a program that tells you if you can login to an email account or not by entering their username and password into Windows Live.
It would connect to the Hotmail server and see if the user/pass combination is correct. If it can log in, it would display a label that the account is valid, if not it would say that the account is not valid.
How would I go about doing this?
Ok here's the totally incorrect code for logging in. I kind of borrowed it from sending an email:
Dim MyMailMessage As New MailMessage
MyMailMessage.From = New MailAddress(TextBox1.Text)
MyMailMessage.To.Add(TextBox1.Text)
Dim SMTP As New SmtpClient("smtp.live.com")
SMTP.Port = 25
SMTP.EnableSsl = True
SMTP.Credentials = New System.Net.NetworkCredential("textbox1.text", "textbox2.text")
SMTP.Send(MyMailMessage) // I have no idea how to get a response here... from the live server if it gives me a correct or incorrect response...
Can someone post an example code if they have a solution to this? Because I have no idea how to make this single handingly.