ServerName Property  
 

Gets and sets the host name of the current mail server.

Syntax

object.ServerName [= value ]

Remarks

The ServerName property returns the name of the mail server that the client is connected to. Setting this property specifies the host name or Internet address for a subsequent connection.

If the ServerName property is not explicitly set, then an application must provide the host name or address to the Connect method. Once the connection has been established, this property will be updated with the appropriate value. If the server uses a non-standard port number, it can be specified using the ServerPort property.

The mail server must support Post Office Protocol v3 (POP3) to retrieve messages. Setting this property does not affect what server is used to deliver messages. See the RelayServer and RelayPort properties to specify a mail server that is responsible for relaying messages.

Data Type

String

See Also

RelayPort Property, RelayServer Property, ServerPort Property, ServerType Property, Connect Method