NetNetworkCredential.Create

Syntax

Create(UserName: String; Password: String; Domain: String)

Parameters

UserName. User name.

Password. User password.

Domain. Domain.

Description

The Create constructor creates an object for credentials support in the password based authentication schemes, such as the basic, digest, NTLM and Kerberos.

Example

Sub UserProc;

Var

SmtpClient : INetSmtpClient;

Credent : INetNetworkCredential;

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:

NetNetworkCredential