wodSmtp ActiveX Control - Authentication Property
      
 

Description

Determines authentication type with the server.


Property type

A SmtpAuthentications enumeration.  


Syntax

object.Authentication [= value]



The Authentication Property syntax has these parts:

Part Description
object An expression evaluating to an object of type wodSmtp.
value A SmtpAuthentications enumeration, as described in settings.

Settings

The settings for value are:

Constant Value Description
 AuthNone 1 No authentication required.
 AuthLogin 4 Authentication using LOGIN type.
 AuthPlain 8 Authentication using PLAIN type.
 AuthCramMD5 16 Authentication using CRAM-MD5 type.
 AuthNTLM 32 Authentication using NTLM (SPA) type.
 AuthAuto 255 Tries to determine authentication automatically

Remarks

Authentication property determines if wodSmtp will try to authenticate with the SMTP server. If you set this value to anything other than AuthNone, then you must also set Login and Password properties with your credentials.

This property must be set before you call Connect or SendMessage methods.

If set to AuthAuto, component will try to determine supported authentication methods. It will check capabilities shown in Connected event, and act on AUTH capabilities presented by the server.