PowerTCP Mail for .NET
GetDefaultPort Method (Imap)




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 = Imap.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 993 is returned (the well-known secure IMAP4 server port). Otherwise, 143 is returned (the well-known IMAP4 server port).

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

See Also

Reference

Imap Class
Imap Members


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