wodSmtpServer ActiveX Control - Authentication Property
      
 

Description

Determines if Smtp server requires authentication.


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 wodSmtpServer.
value A SmtpAuthentications enumeration, as described in settings.

Settings

The settings for value are:

Constant Value Description
 AuthInvalid 0 No authentication allowed.
 AuthNone 1 No authentication required.
 AuthAny 2 Any authentication is required.
 AuthLogin 4 Authentication using LOGIN type.
 AuthPlain 8 Authentication using PLAIN type.
 AuthCramMD5 16 Authentication using CRAM-MD5 type.

Remarks

Authentication property can be changed at any time (even when wodSmtpServer is already running) to define if remote clients needs to authenticate with the server or not. Setting this property to AuthInvalid will cause server to reject all authentication attempts. Any other value will accept client's authentication, and fire Authenticate event when client finishes authentication. At that point, you must determine if you will accept it or not.

Please note that AuthCramMD5 authentication is supported - but it does not provide you with plaintext password in Authenticate event. Rather, you must use User.CalcCramMD5 method to determine if user has authenticated successfully or not.