ServerType Property  
 

Gets and sets the type of mail server the client is connecting to.

Syntax

object.ServerType [= servertype ]

Remarks

The ServerType property may be used to specify the mail server type before establishing a connection. If this property is not explicitly set in code, then the control will attempt to automatically determine which protocol should be used based on the value of the ServerPort property. By default, the control will attempt to use the POP3 protocol.

This property may return one of the following values:

Value Constant Description
0 mailServerDefault The default server type is determined by the value of the ServerPort property. If that property has not been set, then the control will use the Post Office Protocol (POP3) as the default protocol when establishing the connection.
1 mailServerPop3 The mail server is using the Post Office Protocol (POP3)
2 mailServerImap4 The mail server is using the Internet Message Access Protocol (IMAP4)

It is important to note that certain properties and methods in the control are specific to the IMAP4 protocol, such as those that are used to select and enumerate mailboxes. If you are unsure which protocol your mail server supports, contact the system administrator.

Data Type

Integer (Int32)

See Also

Secure Property, ServerName Property, ServerPort Property, Connect Method