INetSmtpClient.ThisHostCredentials

Syntax

ThisHostCredentials(AuthProtocol: String): INetNetworkCredential;

Parameters

AuthProtocol. The protocol used for user authentication at SMTP server.

Description

The ThisHostCredentials property determines the credentials of the SMTP sending mail server that is used on email message sending.

Comments

Specify one of the protocols supported by the SMTP server, which is worked with, as value of the AuthProtocol parameter, for example, Basic, Digest, NTLM, Kerberos, PLAIN and others. The list of supported protocols can be obtained by studying parameters of specific SMTP server. If there is no information about the protocol, leave the string empty. In this case SMTP server selects how user is to be authenticated.

Example

The example of use is given in description of the Send method.

See also:

INetSmtpClient