wodImapServer ActiveX Component - Username Property
      
 

Description

Holds username used for logon of connected user.


Property type

A String value.  


Syntax

object.Username [= value]



The Username Property syntax has these parts:

Part Description
object An expression evaluating to an object of type ImapUser.
value A String value. Holds username used for authorization with your IMAP server.

Remarks

IMAP protocol specification defines that each user needs to specify his username and password combination in order to successfully access his email. Once user issues 'LOGIN' command with username and password information (this is only currently supported authentication model), it is stored in this property. You should check this value during Connected event (together with Password property) to decide if you will allow the user to access (his) mailboxes or not.

After you check those properties, you are free to change their values to something else. For instance, if there is more than one person checking same email, you can provide each of them with his unique username/password combination, and after successful logon just change username to 'staff' so you can reference it later easier.