Catalyst Internet Mail .NET

InternetMail.ServerType Property

Gets and sets a value which specifies the type of mail server the client is connecting to.

[Visual Basic]
Public Property ServerType As MailServerType
[C#]
public InternetMail.MailServerType ServerType {get; set;}

Property Value

Returns a MailServerType enumeration value which specifies the type of mail server, either using the Post Office Protocol or the Internet Message Access Protocol.

Remarks

If this property value is specified as serverUnknown, the actual server type will be determined by the value of the ServerPort property, if the port number is recognized as a standard serivce port. If the server type cannot be automatically identified, an error will be returned when the Connect method is called.

If you are connecting using a non-standard port number, you should always initialize this property value to the correct server type before attempting to establish a connection.

See Also

InternetMail Class | SocketTools Namespace