EmailClient

EmailClient (1 of 9)

Initializes a new instance of the EmailClient class.

Returns: Aspose::Email::Clients::

EmailClient(System::String type)
ParameterDescription
type

EmailClient (2 of 9)

Initializes a new instance of the EmailClient class.

Returns: Aspose::Email::Clients::

EmailClient(System::String type, System::String host, int32_t port)
ParameterDescription
hostThe host name.
portThe port number.

EmailClient (3 of 9)

Initializes a new instance of the EmailClient class.

Returns: Aspose::Email::Clients::

EmailClient(System::String type, System::String host, int32_t port, Aspose::Email::Clients::SecurityOptions securityOptions)
ParameterDescription
hostThe host name.
portThe port number.
securityOptionsSecurity mode for a mail client

EmailClient (4 of 9)

Initializes a new instance of the EmailClient class.

Returns: Aspose::Email::Clients::

EmailClient(System::String type, System::String host, int32_t port, System::String username, System::String password)
ParameterDescription
hostThe host name.
portThe port number.
usernameThe username.
passwordThe account password. Password limitations are defined by server implementation, which the client connects.

EmailClient (5 of 9)

Initializes a new instance of the EmailClient class.

Returns: Aspose::Email::Clients::

EmailClient(System::String type, System::String host, int32_t port, System::String username, System::String password, Aspose::Email::Clients::SecurityOptions securityOptions)
ParameterDescription
hostThe host name.
portThe port number.
usernameThe username.
passwordThe account password. Password limitations are defined by server implementation, which the client connects.
securityOptionsSecurity mode for a mail client

EmailClient (6 of 9)

Initializes a new instance of the EmailClient class.

Returns: Aspose::Email::Clients::

EmailClient(System::String type, System::String host, int32_t port, System::String username, System::String authInfo, bool useOAuth)
ParameterDescription
hostThe host.
portThe port.
usernameThe username.
authInfoA string representation of the user password or the access token. AuthInfo limitations are defined by server implementation, which the client connects.
useOAuthDefines whether OAuth is used to login to the server

EmailClient (7 of 9)

Initializes a new instance of the EmailClient class.

Returns: Aspose::Email::Clients::

EmailClient(System::String type, System::String host, int32_t port, System::String username, System::String authInfo, bool useOAuth, Aspose::Email::Clients::SecurityOptions securityOptions)
ParameterDescription
hostThe host.
portThe port.
usernameThe username.
authInfoA string representation of the user password or the access token.
useOAuthDefines whether OAuth is used to login to the server
securityOptionsSecurity mode for a mail client

EmailClient (8 of 9)

Initializes a new instance of the EmailClient class.

Returns: Aspose::Email::Clients::

EmailClient(System::String type, System::String host, int32_t port, System::String username, System::SharedPtr < ITokenProvider > tokenProvider)
ParameterDescription
hostThe host.
portThe port.
usernameThe username.
tokenProviderTokenProvider allowing to retrieve access token.

EmailClient (9 of 9)

Initializes a new instance of the EmailClient class.

Returns: Aspose::Email::Clients::

EmailClient(System::String type, System::String host, int32_t port, System::String username, System::SharedPtr < ITokenProvider > tokenProvider, Aspose::Email::Clients::SecurityOptions securityOptions)
ParameterDescription
hostThe host.
portThe port.
usernameThe username.
tokenProviderTokenProvider allowing to retrieve access token.
securityOptions