PowerTCP Mail for .NET
GetDefaultPort Method (Pop)




The MailSession to use for determining the port.
Returns the port normally used for the supplied MailSession configuration.
Syntax
Public Shared Function GetDefaultPort( _
   ByVal session As MailSession _
) As Integer
Dim session As MailSession
Dim value As Integer
 
value = Pop.GetDefaultPort(session)
public static int GetDefaultPort( 
   MailSession session
)
public: static int GetDefaultPort( 
   MailSession* session
) 
public:
static int GetDefaultPort( 
   MailSession^ session
) 

Parameters

session
The MailSession to use for determining the port.

Return Value

The port normally used for the supplied MailSession configuration.
Remarks

If MailSecurity.Encrypt == Encrypt.Implicit, port 995 is returned (the well-known secure POP3 server port). Otherwise, 110 is returned (the well-known POP3 server port).

Used to initialize Session.RemoteEndPoint.Port if not initialized by the user.

See Also

Reference

Pop Class
Pop Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic