MailPort Property
The server port for SMTP (default 25).
Syntax
[VB.NET] Public Property MailPort As Integer
[C#] public int MailPort {get; set;}
Remarks
This property contains the server port for SMTP (default 25). A valid port number (a value between 1 and 65535) is required for the connection to take place. The property must be set before a connection is attempted and cannot be changed once a connection is established. Any attempt to change this property while connected will fail with an error.
This property is not available at design time.
Default Value
25