NetworkCredential.Domain Property

MailAddress Sender = new MailAddress(" SomeOne@yahoo.com ", "SomeOne", Encoding.UTF8); SmtpClient Client = new SmtpClient("smtp.mail.yahoo.com",465); Client.Credentials = new System.Net.NetworkCredential(Sender.Address,"Password",Domain??? ); 

just out of curiosity what is NetworkCredential's third overload
I mean, we need to pass an argument to the Domain property. I searched on the net but nobody used it (domain property). I tried "Yahoo.com", "@ Yahoo.com", "Yahoo" bot not every time with the same authentication error. This can be done without a domain property, but where can we use it or what we can transfer.

+1
source share
1 answer

The Domain property is used to authenticate NTLM with Active Directory domains.
It is not used for regular login scripts.

+3
source

Source: https://habr.com/ru/post/1234286/


All Articles