SmtpClient.SmtpClient
SmtpClient()
Initializes a new instance of the SmtpClient class.
public SmtpClient()
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, SecurityOptions)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, SecurityOptions securityOptions)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| securityOptions | SecurityOptions | Security mode for a mail client |
See Also
- enum SecurityOptions
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, int)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, int port)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| port | Int32 | The port used for SMTP. |
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, int, SecurityOptions)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, int port, SecurityOptions securityOptions)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| port | Int32 | The port used for SMTP. |
| securityOptions | SecurityOptions | Security mode for a mail client |
See Also
- enum SecurityOptions
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, string, string)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, string username, string password)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| username | String | The username. |
| password | String | The password. Password limitations are defined by server implementation, which the client connects. |
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, string, string, SecurityOptions)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, string username, string password, SecurityOptions securityOptions)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| username | String | The username. |
| password | String | The password. Password limitations are defined by server implementation, which the client connects. |
| securityOptions | SecurityOptions | Security mode for a mail client |
See Also
- enum SecurityOptions
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, int, string, string)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, int port, string username, string password)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| port | Int32 | The port used for SMTP. |
| username | String | The username. |
| password | String | The password. Password limitations are defined by server implementation, which the client connects. |
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, int, string, string, SecurityOptions)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, int port, string username, string password,
SecurityOptions securityOptions)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| port | Int32 | The port used for SMTP. |
| username | String | The username. |
| password | String | The password. Password limitations are defined by server implementation, which the client connects. |
| securityOptions | SecurityOptions | Security mode for a mail client |
See Also
- enum SecurityOptions
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, string, string, bool)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, string username, string authInfo, bool useOAuth)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| username | String | The username. |
| authInfo | String | The user password or XOAUTH2 access token |
| useOAuth | Boolean | Defines whether SASL XOAUTH2 mechanism is used to login to the server |
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, string, string, bool, SecurityOptions)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, string username, string authInfo, bool useOAuth,
SecurityOptions securityOptions)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| username | String | The username. |
| authInfo | String | The user password or XOAUTH2 access token |
| useOAuth | Boolean | Defines whether SASL XOAUTH2 mechanism is used to login to the server |
| securityOptions | SecurityOptions | Security mode for a mail client |
See Also
- enum SecurityOptions
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, int, string, string, bool)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, int port, string username, string authInfo, bool useOAuth)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| port | Int32 | The port used for SMTP. |
| username | String | The username. |
| authInfo | String | The user password or XOAUTH2 access token |
| useOAuth | Boolean | Defines whether SASL XOAUTH2 mechanism is used to login to the server |
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, int, string, string, bool, SecurityOptions)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, int port, string username, string authInfo, bool useOAuth,
SecurityOptions securityOptions)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| port | Int32 | The port used for SMTP. |
| username | String | The username. |
| authInfo | String | The user password or XOAUTH2 access token |
| useOAuth | Boolean | Defines whether SASL XOAUTH2 mechanism is used to login to the server |
| securityOptions | SecurityOptions | Security mode for a mail client |
See Also
- enum SecurityOptions
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, string, ITokenProvider)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, string username, ITokenProvider tokenProvider)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| username | String | The username. |
| tokenProvider | ITokenProvider | TokenProvider allowing to retrieve access token. |
See Also
- interface ITokenProvider
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, string, ITokenProvider, SecurityOptions)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, string username, ITokenProvider tokenProvider,
SecurityOptions securityOptions)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| username | String | The username. |
| tokenProvider | ITokenProvider | TokenProvider allowing to retrieve access token. |
| securityOptions | SecurityOptions | Security mode for a mail client |
See Also
- interface ITokenProvider
- enum SecurityOptions
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, int, string, ITokenProvider)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, int port, string username, ITokenProvider tokenProvider)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| port | Int32 | The port used for SMTP. |
| username | String | The username. |
| tokenProvider | ITokenProvider | TokenProvider allowing to retrieve access token. |
See Also
- interface ITokenProvider
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, int, string, ITokenProvider, SecurityOptions)
Initializes a new instance of the SmtpClient class.
public SmtpClient(string host, int port, string username, ITokenProvider tokenProvider,
SecurityOptions securityOptions)
| Parameter | Type | Description |
|---|---|---|
| host | String | The name of the host used for SMTP. |
| port | Int32 | The port used for SMTP. |
| username | String | The username. |
| tokenProvider | ITokenProvider | TokenProvider allowing to retrieve access token. |
| securityOptions | SecurityOptions | Security mode for a mail client |
See Also
- interface ITokenProvider
- enum SecurityOptions
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SmtpClient(string, int, string, string, RemoteCertificateValidationCallback)
Initializes a new instance of the SmtpClient class
public SmtpClient(string host, int port, string username, string password,
RemoteCertificateValidationCallback userCertificateValidationCallback)
| Parameter | Type | Description |
|---|---|---|
| host | String | The host name |
| port | Int32 | The portnumber |
| username | String | The user name |
| password | String | The password |
| userCertificateValidationCallback | RemoteCertificateValidationCallback | System.Net.Security.RemoteCertificateValidationCallback |
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email