How to validate login for outlook
I wonder how can I validate my login account.
I have an account here www.outlook.com
How can validate my username and password if exist or successfully login using vb.net.
I am coding simple smtp mail sender using vb.net, but first I want to validate my account before sending the email.
Is there any idea or code snippet?
Re: How to validate login for outlook
Try this for setting user credentials
Code:
Dim smtp As New System.Net.Mail.SmtpClient
smtp.Credentials = New System.Net.NetworkCredential("username", "password")
Re: How to validate login for outlook
@amrita
yeah I know that. but how can I check if that account is being successfully login to server?
I just want to check if that username and password is being accepted by the server before I send the body of my email.