RemotePort Property  
 

Gets and sets the port number for a remote connection.

Syntax

object.RemotePort [= portnumber ]

Remarks

The RemotePort property is used to set the port number that the control will use to establish a connection with the server. For standard connections, the default port number is 25. An alternative port is 587, which is commonly used by authenticated clients to submit messages for delivery. For secure connections, the default port number is 465. If the secure port number is specified, an implicit SSL/TLS connection will be established by default.

Data Type

Integer (Int32)

See Also

HostAddress Property, HostName Property