Create(UserName: String; Password: String; Domain: String)
UserName. User name.
Password. User password.
Domain. Domain.
The Create constructor creates an object for credentials support in the password based authentication schemes, such as the basic, digest, NTLM and Kerberos.
Sub UserProc;
Var
SmtpClient : NetSmtpClient;
Credent : NetNetworkCredential;
Begin
SmtpClient := New NetSmtpClient.CreateWithHost("www.host.net");
Credent := New NetNetworkCredential.Create("myusername","mypwd","PROGNOZ");
SmtpClient.ThisHostCredentials("PLAIN") := Credent;
End Sub UserProc;
After executing the example mail server authentication settings is assigned.
See also: