EmailClient

EmailClient class

Represents the client that creates server connection by using the host credentials.

Constructors

NameDescription
EmailClient (9 overloads)Initializes a new instance of the EmailClient class.

Methods

NameDescription
CancelAsyncOperationCancels asynchronous operation. This method is used only with APM operations also known as Begin/End methods. Please do not use this method with TAP operations!
ConnectionFinalizePerforms finalization operation for specified connection
CreateConnection (2 overloads)Creates new independent connection for operations not linked to threads (not default connection). Invocation of this method is similar to invocation of CreateConnection(createAsDefaultConnection = false) Please see more in documentation for EmailClient.ConnectionAsgmtMode property.
Dispose (2 overloads)Finalizes all operations with a server.
EndGroupOperationWaits for the pending asynchronous operation to complete.
get_AccessTokenGets the access token.
get_ClientCertificatesContains collection of clients certificates
get_ConnectionAsgmtModeGets value which defines mode of connection allocation in multiple threads environment
get_ConnectionCheckupPeriodPeriod of connection checking up in milliseconds. Default value is 5 min.
get_ConnectionPoolGets connection pool for the client
get_ConnectionsQuantityGets quantity of connections in multy-connection mode
get_ConnectionStateGets the current state of the connection.
get_Credentials
get_CurrentConnectionGets current connection according to ConnectionAsgmtMode option
get_DefaultEncodingGets default encoding for email client
get_DefaultPortGets default port for client
get_EnableLoggerGets value which allows enable/disable logger
get_GreetingTimeoutGets the greeting timeout that is used when establishing a connection. Please note, greeting timeout can’t be infinite.
get_HostGets the host name.
get_LogFileNameGets log file name
get_Logger
get_PasswordGets the password. Password limitations are defined by server implementation, which client connects.
get_PortGets the port.
get_ProxyGets proxy for the client
get_SecurityOptionsSecurity mode for a mail client
get_SupportedEncryptionDefines the versions of SSL/TLS encryption protocols to be used. PLEASE PAY YOUR ATTENTION, you may set only those versions of protocol, which are supported by .net framework. IF SOME VERSIONS OF PROTOCOL ARE NOT SUPPORTED BY YOUR CURRENT VERSION OF .NET FRAMEWORK, THEY WILL BE IGNORED AND SKIPPED. IT MAY LEAD TO DOWNGRADE TLS SECURITY LEVEL. IN THIS CASE EXCEPTION WON’T BE GENERATED!!! Please, see EncryptionProtocols documentation for more details. Please use SetSupportedEncryptionUnsafe method if you want to set the encryption protocols without any compatibility checks. Default value is: Tls
get_TimeoutGets the timeout for mail operations
get_TokenProviderGets TokenProvider allowing to retrieve access token.
get_UseAuthenticationIndicates whether authentication is used.
get_UseDateInLogFileNameGets value which indicates if date has to be used in log file name.
get_UseDefaultCredentialsGets a Boolean value that controls whether the DefaultCredentials are sent with requests. This option is used with NTLM authentication ONLY!
get_UseMultiConnectionGets value which indicates if client has to use multiple connections for heavy loaded operations. Please note, using of this mode not necessary has to lead to performance increasing.
get_UsePipeliningGets object which indicates whether the pipelining mode is enabled.
get_UsernameGets the username.
GetCapabilities
InitializeConnectionPool
initializeLogger
Noop (3 overloads)‘No operation’ command
ResetLogSettingsResets logging settings to default.
set_AccessTokenSets the access token.
set_ConnectionAsgmtModeSets value which defines mode of connection allocation in multiple threads environment
set_ConnectionCheckupPeriodPeriod of connection checking up in milliseconds. Default value is 5 min.
set_ConnectionPoolSets connection pool for the client
set_ConnectionsQuantitySets quantity of connections in multy-connection mode
set_Credentials
set_DefaultEncodingSets default encoding for email client
set_EnableLoggerSets value which allows enable/disable logger
set_GreetingTimeoutSets the greeting timeout that is used when establishing a connection. Please note, greeting timeout can’t be infinite.
set_HostSets the host name.
set_LogFileNameSets log file name
set_Logger
set_PasswordSets the password. Password limitations are defined by server implementation, which client connects.
set_PortSets the port.
set_ProxySets proxy for the client
set_SecurityOptionsSecurity mode for a mail client
set_SupportedEncryptionDefines the versions of SSL/TLS encryption protocols to be used. PLEASE PAY YOUR ATTENTION, you may set only those versions of protocol, which are supported by .net framework. IF SOME VERSIONS OF PROTOCOL ARE NOT SUPPORTED BY YOUR CURRENT VERSION OF .NET FRAMEWORK, THEY WILL BE IGNORED AND SKIPPED. IT MAY LEAD TO DOWNGRADE TLS SECURITY LEVEL. IN THIS CASE EXCEPTION WON’T BE GENERATED!!! Please, see EncryptionProtocols documentation for more details. Please use SetSupportedEncryptionUnsafe method if you want to set the encryption protocols without any compatibility checks. Default value is: Tls
set_TimeoutSets the timeout for mail operations
set_TokenProviderSets TokenProvider allowing to retrieve access token.
set_UseAuthenticationIndicates whether authentication is used.
set_UseDateInLogFileNameSets value which indicates if date has to be used in log file name.
set_UseDefaultCredentialsSets a Boolean value that controls whether the DefaultCredentials are sent with requests. This option is used with NTLM authentication ONLY!
set_UseMultiConnectionSets value which indicates if client has to use multiple connections for heavy loaded operations. Please note, using of this mode not necessary has to lead to performance increasing.
set_UsePipeliningSets object which indicates whether the pipelining mode is enabled.
set_UsernameSets the username.
SetCredentials
SetSupportedEncryptionUnsafeDefines the versions of SSL/TLS encryption protocols to be used. This method is not safe and sets the encryption protocols without any compatibility checks. Use SupportedEncryption property to safely set only protocols that definitely supported by .net framework. Please note, if your current .net framework does not support this level of security, an exception will be thrown when trying to establish a connection to the server.
ValidateCredentialsChecks if the credentials are valid
Aspose::Email::Clients::Imap::ImapClient
Aspose::Email::Clients::Pop3::Pop3Client
Aspose::Email::Clients::Smtp::SmtpClient
accessToken
clientType
connectionPool
logger
loggerSyncObj
logManagerSyncObj
password
tokenProvider
username