Aspose::Email::Clients::Smtp::SmtpClient Class Referencefinal

Allows applications to send messages by using the Simple Mail Transfer Protocol (SMTP). More...

Inherits Aspose::Email::Clients::EmailClient, and Aspose::Email::Clients::Smtp::IMailTransferAgent.

Public Member Functions

System::SharedPtr< SmtpConnectionPool > get_Pool ()
 Gets connection pool for the client More...
 
int32_t get_DefaultPort () override
 Gets default port for client More...
 
System::String get_HelloMessage ()
 Gets a HELO/EHLO string. More...
 
void set_HelloMessage (System::String value)
 Sets a HELO/EHLO string. More...
 
SmtpDeliveryMethod get_DeliveryMethod ()
 Gets the delivery method. More...
 
void set_DeliveryMethod (SmtpDeliveryMethod value)
 Sets the delivery method. More...
 
System::String get_PickupDirectoryLocation ()
 Gets the directory where applications save mail messages to be processed by the local SMTP server. Please note: only absolute path is allowed. More...
 
void set_PickupDirectoryLocation (System::String value)
 Sets the directory where applications save mail messages to be processed by the local SMTP server. Please note: only absolute path is allowed. More...
 
System::String get_SmtpQueueLocation ()
 Gets the directory where applications save mail messages to be processed by sending in SMTP queue. Please note: only absolute path is allowed. More...
 
void set_SmtpQueueLocation (System::String value)
 Sets the directory where applications save mail messages to be processed by sending in SMTP queue. Please note: only absolute path is allowed. More...
 
bool get_UseDefaultCredentials () override
 Gets a Boolean value that controls whether the DefaultCredentials are sent with requests. More...
 
void set_UseDefaultCredentials (bool value) override
 Sets a Boolean value that controls whether the DefaultCredentials are sent with requests. More...
 
bool get_UseTnef ()
 Gets a boolean value that controls whether the messages are sent in TNEF format. Note, that now message is sent in TNEF format when being loaded a message contains tnef. More...
 
void set_UseTnef (bool value)
 Sets a boolean value that controls whether the messages are sent in TNEF format. Note, that now message is sent in TNEF format when being loaded a message contains tnef. More...
 
SmtpKnownAuthenticationType get_AllowedAuthentication ()
 Gets enumeration of allowed by user authentication types More...
 
void set_AllowedAuthentication (SmtpKnownAuthenticationType value)
 Sets enumeration of allowed by user authentication types More...
 
SmtpKnownAuthenticationType get_SupportedAuthentication ()
 Gets enumeration of supported by server authentication types More...
 
 SmtpClient ()
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, int32_t port)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, int32_t port, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, System::String username, System::String password)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, System::String username, System::String password, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, int32_t port, System::String username, System::String password)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, int32_t port, System::String username, System::String password, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, System::String username, System::String authInfo, bool useOAuth)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, System::String username, System::String authInfo, bool useOAuth, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, int32_t port, System::String username, System::String authInfo, bool useOAuth)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, int32_t port, System::String username, System::String authInfo, bool useOAuth, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, System::String username, System::SharedPtr< ITokenProvider > tokenProvider)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, System::String username, System::SharedPtr< ITokenProvider > tokenProvider, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, int32_t port, System::String username, System::SharedPtr< ITokenProvider > tokenProvider)
 Initializes a new instance of the SmtpClient class. More...
 
 SmtpClient (System::String host, int32_t port, System::String username, System::SharedPtr< ITokenProvider > tokenProvider, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the SmtpClient class. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::SharedPtr< IConnection > connection, System::String sender, System::String recipient, System::SharedPtr< MailMessage > message)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::SharedPtr< IConnection > connection, System::String sender, System::String recipient, System::SharedPtr< MailMessage > message, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::SharedPtr< IConnection > connection, System::String sender, System::String recipient, System::SharedPtr< MailMessage > message, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::String sender, System::String recipient, System::SharedPtr< MailMessage > message)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::String sender, System::String recipient, System::SharedPtr< MailMessage > message, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::String sender, System::String recipient, System::SharedPtr< MailMessage > message, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::SharedPtr< IConnection > connection, System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< MailMessage > message)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::SharedPtr< IConnection > connection, System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< MailMessage > message, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::SharedPtr< IConnection > connection, System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< MailMessage > message, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::SharedPtr< IConnection > connection, System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< System::IO::Stream > messageStream, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< MailMessage > message)
 Begins forward email asynchronously. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< MailMessage > message, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginForward (System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< MailMessage > message, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
void EndForward (System::SharedPtr< System::IAsyncResult > asyncResult)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
void Forward (System::SharedPtr< IConnection > connection, System::String sender, System::String recipient, System::SharedPtr< MailMessage > message)
 Forwards specified message to recipient More...
 
void Forward (System::SharedPtr< IConnection > connection, System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< MailMessage > message)
 Forwards specified message to recipient More...
 
void Forward (System::String sender, System::String recipient, System::SharedPtr< MailMessage > message)
 Forwards specified message to recipient More...
 
void Forward (System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< MailMessage > message)
 Forwards specified message to recipient More...
 
void Forward (System::SharedPtr< IConnection > connection, System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< System::IO::Stream > messageStream)
 Forwards specified message to recipient More...
 
void Forward (System::String sender, System::SharedPtr< MailAddressCollection > recipients, System::SharedPtr< System::IO::Stream > messageStream)
 Forwards specified message to recipient More...
 
System::SharedPtr< System::IAsyncResult > BeginNoop (System::SharedPtr< IConnection > connection)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginNoop (System::SharedPtr< IConnection > connection, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginNoop (System::SharedPtr< IConnection > connection, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginNoop ()
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginNoop (System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginNoop (System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
void EndNoop (System::SharedPtr< System::IAsyncResult > asyncResult)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
void Noop (System::SharedPtr< IConnection > connection) override
 'No operation' command More...
 
void Noop () override
 'No operation' command More...
 
void Noop (System::SharedPtr< Connection > connection, int32_t timeout) override
 'No operation' command More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::SharedPtr< MailMessage > message)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::SharedPtr< MailMessage > message, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::SharedPtr< MailMessage > message, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::String from, System::String recipients, System::String subject, System::String body)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::String from, System::String recipients, System::String subject, System::String body, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::String from, System::String recipients, System::String subject, System::String body, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, const System::ArrayPtr< System::SharedPtr< MailMessage >> &messages)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< MailMessage > message)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< MailMessage > message, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< MailMessage > message, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::String from, System::String recipients, System::String subject, System::String body)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::String from, System::String recipients, System::String subject, System::String body, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::String from, System::String recipients, System::String subject, System::String body, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (const System::ArrayPtr< System::SharedPtr< MailMessage >> &messages)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::EventHandler< System::SharedPtr< MailMessageEventArgs >> messageSentDelegate)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::EventHandler< System::SharedPtr< MailMessageEventArgs >> messageSentDelegate, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< IConnection > connection, System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::EventHandler< System::SharedPtr< MailMessageEventArgs >> messageSentDelegate, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::EventHandler< System::SharedPtr< MailMessageEventArgs >> messageSentDelegate)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::EventHandler< System::SharedPtr< MailMessageEventArgs >> messageSentDelegate, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSend (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages, System::EventHandler< System::SharedPtr< MailMessageEventArgs >> messageSentDelegate, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
void EndSend (System::SharedPtr< System::IAsyncResult > asyncResult)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
void Send (System::String from, System::String recipients, System::String subject, System::String body)
 Creates and sends the specified message. More...
 
void Send (System::SharedPtr< MailMessage > message) override
 Send the specified message. More...
 
void Send (const System::ArrayPtr< System::SharedPtr< MailMessage >> &messages)
 Send the specified message. More...
 
void Send (System::SharedPtr< MailMessageCollection > messages)
 Send the specified message collection. More...
 
void Send (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages)
 Send the specified messages. More...
 
void Send (System::SharedPtr< IConnection > connection, System::String from, System::String recipients, System::String subject, System::String body)
 Creates and sends the specified message. More...
 
void Send (System::SharedPtr< IConnection > connection, System::SharedPtr< MailMessage > message)
 Send the specified message. More...
 
void Send (System::SharedPtr< IConnection > connection, const System::ArrayPtr< System::SharedPtr< MailMessage >> &messages)
 Send the specified message. More...
 
void Send (System::SharedPtr< IConnection > connection, System::SharedPtr< MailMessageCollection > messages)
 Send the specified message collection. More...
 
void Send (System::SharedPtr< IConnection > connection, System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages)
 Send the specified messages. More...
 
System::SharedPtr< System::IAsyncResult > BeginSendQueue ()
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSendQueue (System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginSendQueue (System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
void EndBeginSendQueue (System::SharedPtr< System::IAsyncResult > asyncResult)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
void SendToQueue (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages)
 Append messages to queue More...
 
System::SharedPtr< System::IAsyncResult > BeginValidateCredentials (System::SharedPtr< IConnection > connection)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginValidateCredentials (System::SharedPtr< IConnection > connection, System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginValidateCredentials (System::SharedPtr< IConnection > connection, System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginValidateCredentials ()
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginValidateCredentials (System::AsyncCallback callback)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
System::SharedPtr< System::IAsyncResult > BeginValidateCredentials (System::AsyncCallback callback, System::SharedPtr< System::Object > state)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
bool EndValidateCredentials (System::SharedPtr< System::IAsyncResult > asyncResult)
 Please note: this method is used only for the .NET framework with versions earlier than 4.5. More...
 
bool ValidateCredentials (System::SharedPtr< IConnection > connection)
 Executes credentials validation More...
 
bool ValidateCredentials () override
 Executes credentials validation More...
 
- Public Member Functions inherited from Aspose::Email::Clients::EmailClient
bool get_EnableLogger ()
 Gets value which allows enable/disable logger More...
 
void set_EnableLogger (bool value)
 Sets value which allows enable/disable logger More...
 
System::String get_LogFileName ()
 Gets log file name More...
 
void set_LogFileName (System::String value)
 Sets log file name More...
 
bool get_UseDateInLogFileName () const
 Gets value which indicates if date has to be used in log file name. More...
 
void set_UseDateInLogFileName (bool value)
 Sets value which indicates if date has to be used in log file name. More...
 
virtual System::SharedPtr< Aspose::Email::Tools::Logging::Loggerget_Logger ()
 
virtual void set_Logger (System::SharedPtr< Aspose::Email::Tools::Logging::Logger > value)
 
virtual System::SharedPtr< System::Text::Encoding > get_DefaultEncoding ()
 Gets default encoding for email client More...
 
virtual void set_DefaultEncoding (System::SharedPtr< System::Text::Encoding > value)
 Sets default encoding for email client More...
 
virtual Base::EncryptionProtocols get_SupportedEncryption ()
 Defines 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 | Tls11 | Tls12 | Tls13 (in case if your current version of .net framework supports these versions of TLS) More...
 
virtual void set_SupportedEncryption (Base::EncryptionProtocols value)
 Defines 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 | Tls11 | Tls12 | Tls13 (in case if your current version of .net framework supports these versions of TLS) More...
 
virtual System::SharedPtr< System::Security::Cryptography::X509Certificates::X509CertificateCollection > get_ClientCertificates ()
 Contains collection of clients certificates More...
 
virtual System::SharedPtr< PipeliningStatusget_UsePipelining ()
 Gets object which indicates whether the pipelining mode is enabled. More...
 
virtual void set_UsePipelining (System::SharedPtr< PipeliningStatus > value)
 Sets object which indicates whether the pipelining mode is enabled. More...
 
virtual System::String get_Host ()
 Gets the host name. More...
 
virtual void set_Host (System::String value)
 Sets the host name. More...
 
virtual int32_t get_Port ()
 Gets the port. More...
 
virtual void set_Port (int32_t value)
 Sets the port. More...
 
virtual Aspose::Email::Clients::SecurityOptions get_SecurityOptions ()
 Security mode for a mail client More...
 
virtual void set_SecurityOptions (Aspose::Email::Clients::SecurityOptions value)
 Security mode for a mail client More...
 
virtual bool get_UseAuthentication ()
 Indicates whether authentication is used. More...
 
virtual void set_UseAuthentication (bool value)
 Indicates whether authentication is used. More...
 
virtual int32_t get_ConnectionCheckupPeriod ()
 Period of connection checking up in milliseconds. Default value is 5 min. More...
 
virtual void set_ConnectionCheckupPeriod (int32_t value)
 Period of connection checking up in milliseconds. Default value is 5 min. More...
 
virtual System::SharedPtr< Aspose::Email::Clients::Proxyget_Proxy ()
 Gets proxy for the client More...
 
virtual void set_Proxy (System::SharedPtr< Aspose::Email::Clients::Proxy > value)
 Sets proxy for the client More...
 
int32_t get_Timeout ()
 Gets the timeout for mail operations More...
 
void set_Timeout (int32_t value)
 Sets the timeout for mail operations More...
 
int32_t get_GreetingTimeout ()
 Gets the greeting timeout that is used when establishing a connection. Please note, greeting timeout can't be infinite. More...
 
void set_GreetingTimeout (int32_t value)
 Sets the greeting timeout that is used when establishing a connection. Please note, greeting timeout can't be infinite. More...
 
System::SharedPtr< System::Net::ICredentialsByHost > get_Credentials ()
 
void set_Credentials (System::SharedPtr< System::Net::ICredentialsByHost > value)
 
virtual System::String get_Password ()
 Gets the password. Password limitations are defined by server implementation, which client connects. More...
 
virtual void set_Password (System::String value)
 Sets the password. Password limitations are defined by server implementation, which client connects. More...
 
virtual System::String get_AccessToken ()
 Gets the access token. More...
 
virtual void set_AccessToken (System::String value)
 Sets the access token. More...
 
System::SharedPtr< ITokenProviderget_TokenProvider () const
 Gets TokenProvider allowing to retrieve access token. More...
 
void set_TokenProvider (System::SharedPtr< ITokenProvider > value)
 Sets TokenProvider allowing to retrieve access token. More...
 
virtual System::String get_Username ()
 Gets the username. More...
 
virtual void set_Username (System::String value)
 Sets the username. More...
 
Aspose::Email::Clients::ConnectionState get_ConnectionState ()
 Gets the current state of the connection. More...
 
System::SharedPtr< Aspose::Email::Clients::ConnectionPool > get_ConnectionPool () const
 Gets connection pool for the client More...
 
void set_ConnectionPool (System::SharedPtr< Aspose::Email::Clients::ConnectionPool > value)
 Sets connection pool for the client More...
 
virtual System::SharedPtr< IConnectionget_CurrentConnection ()
 Gets current connection according to ConnectionAsgmtMode option More...
 
virtual ConnectionAsgmtType get_ConnectionAsgmtMode ()
 Gets value which defines mode of connection allocation in multiple threads environment More...
 
virtual void set_ConnectionAsgmtMode (ConnectionAsgmtType value)
 Sets value which defines mode of connection allocation in multiple threads environment More...
 
virtual MultiConnectionMode get_UseMultiConnection ()
 Gets 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. More...
 
virtual void set_UseMultiConnection (MultiConnectionMode value)
 Sets 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. More...
 
virtual int32_t get_ConnectionsQuantity ()
 Gets quantity of connections in multy-connection mode More...
 
virtual void set_ConnectionsQuantity (int32_t value)
 Sets quantity of connections in multy-connection mode More...
 
void InitializeConnectionPool ()
 
void ResetLogSettings ()
 Resets logging settings to default. More...
 
void initializeLogger ()
 
void SetSupportedEncryptionUnsafe (Base::EncryptionProtocols value)
 Defines 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. More...
 
void SetCredentials ()
 
virtual System::ArrayPtr< System::String > GetCapabilities ()
 
void CancelAsyncOperation (System::SharedPtr< System::IAsyncResult > asyncResult)
 Cancels 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! More...
 
virtual void ConnectionFinalize (System::SharedPtr< System::Object > sender, System::SharedPtr< Base::ConnectionEventArgs > args)
 Performs finalization operation for specified connection More...
 
System::SharedPtr< System::Object > EndGroupOperation (System::SharedPtr< System::IAsyncResult > asyncResult)
 Waits for the pending asynchronous operation to complete. More...
 
void Dispose () override
 Finalizes all operations with a server. More...
 
virtual System::SharedPtr< IConnectionCreateConnection ()
 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. More...
 
virtual System::SharedPtr< IConnectionCreateConnection (bool createAsDefaultConnection)
 Creates new (default or independent) connection for operations. Please see more in documentation for EmailClient.ConnectionAsgmtMode property. More...
 

Protected Member Functions

virtual ~SmtpClient ()
 
- Protected Member Functions inherited from Aspose::Email::Clients::EmailClient
 EmailClient (System::String type)
 Initializes a new instance of the EmailClient class. More...
 
 EmailClient (System::String type, System::String host, int32_t port)
 Initializes a new instance of the EmailClient class. More...
 
 EmailClient (System::String type, System::String host, int32_t port, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the EmailClient class. More...
 
 EmailClient (System::String type, System::String host, int32_t port, System::String username, System::String password)
 Initializes a new instance of the EmailClient class. More...
 
 EmailClient (System::String type, System::String host, int32_t port, System::String username, System::String password, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the EmailClient class. More...
 
 EmailClient (System::String type, System::String host, int32_t port, System::String username, System::String authInfo, bool useOAuth)
 Initializes a new instance of the EmailClient class. More...
 
 EmailClient (System::String type, System::String host, int32_t port, System::String username, System::String authInfo, bool useOAuth, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the EmailClient class. More...
 
 EmailClient (System::String type, System::String host, int32_t port, System::String username, System::SharedPtr< ITokenProvider > tokenProvider)
 Initializes a new instance of the EmailClient class. More...
 
 EmailClient (System::String type, System::String host, int32_t port, System::String username, System::SharedPtr< ITokenProvider > tokenProvider, Aspose::Email::Clients::SecurityOptions securityOptions)
 Initializes a new instance of the EmailClient class. More...
 
virtual void Dispose (bool disposing)
 Finalizes all operations with a server. More...
 
virtual ~EmailClient ()
 

Additional Inherited Members

- Public Attributes inherited from Aspose::Email::Clients::EmailClient
System::SharedPtr< System::Object > loggerSyncObj
 
System::SharedPtr< Aspose::Email::Tools::Logging::Loggerlogger
 
System::String password
 
System::String username
 
System::String accessToken
 
System::SharedPtr< ITokenProvidertokenProvider
 
System::SharedPtr< Aspose::Email::Clients::ConnectionPool > connectionPool
 
System::String clientType
 
- Static Public Attributes inherited from Aspose::Email::Clients::EmailClient
static System::SharedPtr< System::Object > logManagerSyncObj
 

Detailed Description

Allows applications to send messages by using the Simple Mail Transfer Protocol (SMTP).

Constructor & Destructor Documentation

◆ SmtpClient() [1/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( )

Initializes a new instance of the SmtpClient class.

◆ SmtpClient() [2/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.

◆ SmtpClient() [3/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
Aspose::Email::Clients::SecurityOptions  securityOptions 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
securityOptionsSecurity mode for a mail client

◆ SmtpClient() [4/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
int32_t  port 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
portThe port used for SMTP.

◆ SmtpClient() [5/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
int32_t  port,
Aspose::Email::Clients::SecurityOptions  securityOptions 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
portThe port used for SMTP.
securityOptionsSecurity mode for a mail client

◆ SmtpClient() [6/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
System::String  username,
System::String  password 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
usernameThe username.
passwordThe password. Password limitations are defined by server implementation, which the client connects.

◆ SmtpClient() [7/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
System::String  username,
System::String  password,
Aspose::Email::Clients::SecurityOptions  securityOptions 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
usernameThe username.
passwordThe password. Password limitations are defined by server implementation, which the client connects.
securityOptionsSecurity mode for a mail client

◆ SmtpClient() [8/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
int32_t  port,
System::String  username,
System::String  password 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
portThe port used for SMTP.
usernameThe username.
passwordThe password. Password limitations are defined by server implementation, which the client connects.

◆ SmtpClient() [9/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
int32_t  port,
System::String  username,
System::String  password,
Aspose::Email::Clients::SecurityOptions  securityOptions 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
portThe port used for SMTP.
usernameThe username.
passwordThe password. Password limitations are defined by server implementation, which the client connects.
securityOptionsSecurity mode for a mail client

◆ SmtpClient() [10/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
System::String  username,
System::String  authInfo,
bool  useOAuth 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
usernameThe username.
authInfoThe user password or XOAUTH2 access token
useOAuthDefines whether SASL XOAUTH2 mechanism is used to login to the server

◆ SmtpClient() [11/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
System::String  username,
System::String  authInfo,
bool  useOAuth,
Aspose::Email::Clients::SecurityOptions  securityOptions 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
usernameThe username.
authInfoThe user password or XOAUTH2 access token
useOAuthDefines whether SASL XOAUTH2 mechanism is used to login to the server
securityOptionsSecurity mode for a mail client

◆ SmtpClient() [12/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
int32_t  port,
System::String  username,
System::String  authInfo,
bool  useOAuth 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
portThe port used for SMTP.
usernameThe username.
authInfoThe user password or XOAUTH2 access token
useOAuthDefines whether SASL XOAUTH2 mechanism is used to login to the server

◆ SmtpClient() [13/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
int32_t  port,
System::String  username,
System::String  authInfo,
bool  useOAuth,
Aspose::Email::Clients::SecurityOptions  securityOptions 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
portThe port used for SMTP.
usernameThe username.
authInfoThe user password or XOAUTH2 access token
useOAuthDefines whether SASL XOAUTH2 mechanism is used to login to the server
securityOptionsSecurity mode for a mail client

◆ SmtpClient() [14/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
System::String  username,
System::SharedPtr< ITokenProvider tokenProvider 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
usernameThe username.
tokenProviderTokenProvider allowing to retrieve access token.

◆ SmtpClient() [15/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
System::String  username,
System::SharedPtr< ITokenProvider tokenProvider,
Aspose::Email::Clients::SecurityOptions  securityOptions 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
usernameThe username.
tokenProviderTokenProvider allowing to retrieve access token.
securityOptionsSecurity mode for a mail client

◆ SmtpClient() [16/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
int32_t  port,
System::String  username,
System::SharedPtr< ITokenProvider tokenProvider 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
portThe port used for SMTP.
usernameThe username.
tokenProviderTokenProvider allowing to retrieve access token.

◆ SmtpClient() [17/17]

Aspose::Email::Clients::Smtp::SmtpClient::SmtpClient ( System::String  host,
int32_t  port,
System::String  username,
System::SharedPtr< ITokenProvider tokenProvider,
Aspose::Email::Clients::SecurityOptions  securityOptions 
)

Initializes a new instance of the SmtpClient class.

Parameters
hostThe name of the host used for SMTP.
portThe port used for SMTP.
usernameThe username.
tokenProviderTokenProvider allowing to retrieve access token.
securityOptionsSecurity mode for a mail client

◆ ~SmtpClient()

virtual Aspose::Email::Clients::Smtp::SmtpClient::~SmtpClient ( )
protectedvirtual

Member Function Documentation

◆ BeginForward() [1/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< MailMessage message 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageThe message for a forwarding.


Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [2/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageThe message for a forwarding.


Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [3/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageThe message for a forwarding.


Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [4/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< System::IO::Stream >  messageStream,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageStreamThe stream that represents message in eml format.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [5/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::String  recipient,
System::SharedPtr< MailMessage message 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientRecipient of the forwarded message.
messageThe message for a forwarding.


Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [6/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::String  recipient,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientRecipients of the forwarded message.
messageThe message for a forwarding.


Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [7/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::String  recipient,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientRecipients of the forwarded message.
messageThe message for a forwarding.


Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [8/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< MailMessage message 
)

Begins forward email asynchronously.

Parameters
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageThe message for a forwarding.


Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [9/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageThe message for a forwarding.


Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [10/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageThe message for a forwarding.


Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [11/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::String  sender,
System::String  recipient,
System::SharedPtr< MailMessage message 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
senderSender of the forwarded message.
recipientRecipients of the forwarded message.
messageThe message for a forwarding.


Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [12/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::String  sender,
System::String  recipient,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
senderSender of the forwarded message.
recipientRecipients of the forwarded message.
messageThe message for a forwarding.


Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginForward() [13/13]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginForward ( System::String  sender,
System::String  recipient,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins forward email asynchronously.

Parameters
senderSender of the forwarded message.
recipientRecipients of the forwarded message.
messageThe message for a forwarding.


Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginNoop() [1/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginNoop ( )

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute 'No operation' command

Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginNoop() [2/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginNoop ( System::AsyncCallback  callback)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute 'No operation' command

Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginNoop() [3/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginNoop ( System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute 'No operation' command

Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginNoop() [4/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginNoop ( System::SharedPtr< IConnection connection)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute 'No operation' command

Parameters
connectionConnection to a server
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginNoop() [5/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginNoop ( System::SharedPtr< IConnection connection,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute 'No operation' command

Parameters
connectionConnection to a server
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginNoop() [6/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginNoop ( System::SharedPtr< IConnection connection,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute 'No operation' command

Parameters
connectionConnection to a server
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [1/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( const System::ArrayPtr< System::SharedPtr< MailMessage >> &  messages)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messagesThe array of MailMessage that represents an email-messages to send.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [2/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
const System::ArrayPtr< System::SharedPtr< MailMessage >> &  messages 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messagesThe array of MailMessage that represents an email-messages to send.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [3/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::SharedPtr< MailMessage message 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messageRepresents an e-mail message
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [4/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messageRepresents an e-mail message
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [5/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::SharedPtr< MailMessage message,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messageRepresents an e-mail message
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [6/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messagesThe array of MailMessage that represents an email-messages to send.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [7/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messagesThe array of MailMessage that represents an email-messages to send.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [8/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messagesThe array of MailMessage that represents an email-messages to send.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [9/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::EventHandler< System::SharedPtr< MailMessageEventArgs >>  messageSentDelegate 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messagesThe array of MailMessage that represents an email-messages to send.
messageSentDelegateReferences a method to be called when a message has been sent.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [10/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::EventHandler< System::SharedPtr< MailMessageEventArgs >>  messageSentDelegate,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messagesThe array of MailMessage that represents an email-messages to send.
messageSentDelegateReferences a method to be called when a message has been sent.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [11/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::EventHandler< System::SharedPtr< MailMessageEventArgs >>  messageSentDelegate,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Deprecated:

Begins sending email asynchronously.

Parameters
connectionConnection to a server
messagesThe array of MailMessage that represents an email-messages to send.
messageSentDelegateReferences a method to be called when a message has been sent.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [12/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::String  from,
System::String  recipients,
System::String  subject,
System::String  body 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
fromA String that contains the address of message sender.
recipientsA String that contains the address of recipients.
subjectA subject of message.
bodyA body of message.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [13/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::String  from,
System::String  recipients,
System::String  subject,
System::String  body,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
fromA String that contains the address of message sender.
recipientsA String that contains the address of recipients.
subjectA subject of message.
bodyA body of message.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [14/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< IConnection connection,
System::String  from,
System::String  recipients,
System::String  subject,
System::String  body,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
connectionConnection to a server
fromA String that contains the address of message sender.
recipientsA String that contains the address of recipients.
subjectA subject of message.
bodyA body of message.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [15/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< MailMessage message)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messageRepresents an e-mail message
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [16/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< MailMessage message,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messageRepresents an e-mail message
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [17/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< MailMessage message,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messageRepresents an e-mail message
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [18/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messagesThe array of MailMessage that represents an email-messages to send.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [19/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messagesThe array of MailMessage that represents an email-messages to send.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [20/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messagesThe array of MailMessage that represents an email-messages to send.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [21/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::EventHandler< System::SharedPtr< MailMessageEventArgs >>  messageSentDelegate 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messagesThe array of MailMessage that represents an email-messages to send.
messageSentDelegateReferences a method to be called when a message has been sent.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [22/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::EventHandler< System::SharedPtr< MailMessageEventArgs >>  messageSentDelegate,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messagesThe array of MailMessage that represents an email-messages to send.
messageSentDelegateReferences a method to be called when a message has been sent.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [23/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages,
System::EventHandler< System::SharedPtr< MailMessageEventArgs >>  messageSentDelegate,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
messagesThe array of MailMessage that represents an email-messages to send.
messageSentDelegateReferences a method to be called when a message has been sent.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [24/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::String  from,
System::String  recipients,
System::String  subject,
System::String  body 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
fromA String that contains the address of message sender.
recipientsA String that contains the address of recipients.
subjectA subject of message.
bodyA body of message.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [25/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::String  from,
System::String  recipients,
System::String  subject,
System::String  body,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
fromA String that contains the address of message sender.
recipientsA String that contains the address of recipients.
subjectA subject of message.
bodyA body of message.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSend() [26/26]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSend ( System::String  from,
System::String  recipients,
System::String  subject,
System::String  body,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins sending email asynchronously.

Parameters
fromA String that contains the address of message sender.
recipientsA String that contains the address of recipients.
subjectA subject of message.
bodyA body of message.
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSendQueue() [1/3]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSendQueue ( )

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute 'No operation' command

Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSendQueue() [2/3]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSendQueue ( System::AsyncCallback  callback)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute 'No operation' command

Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginSendQueue() [3/3]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginSendQueue ( System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute 'No operation' command

Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginValidateCredentials() [1/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginValidateCredentials ( )

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute credentials validation

Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginValidateCredentials() [2/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginValidateCredentials ( System::AsyncCallback  callback)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute credentials validation

Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginValidateCredentials() [3/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginValidateCredentials ( System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute credentials validation

Parameters
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginValidateCredentials() [4/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginValidateCredentials ( System::SharedPtr< IConnection connection)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute credentials validation

Parameters
connectionConnection to a server
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginValidateCredentials() [5/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginValidateCredentials ( System::SharedPtr< IConnection connection,
System::AsyncCallback  callback 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute credentials validation

Parameters
connectionConnection to a server
callbackReferences a method to be called when a corresponding asynchronous operation completes.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ BeginValidateCredentials() [6/6]

System::SharedPtr<System::IAsyncResult> Aspose::Email::Clients::Smtp::SmtpClient::BeginValidateCredentials ( System::SharedPtr< IConnection connection,
System::AsyncCallback  callback,
System::SharedPtr< System::Object >  state 
)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Begins to execute credentials validation

Parameters
connectionConnection to a server
callbackReferences a method to be called when a corresponding asynchronous operation completes.
stateThe state.
Returns
System::IAsyncResult that represents the status of an asynchronous operation.

◆ EndBeginSendQueue()

void Aspose::Email::Clients::Smtp::SmtpClient::EndBeginSendQueue ( System::SharedPtr< System::IAsyncResult >  asyncResult)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Waits for the pending asynchronous operation to complete.

Parameters
asyncResultThe reference to the pending asynchronous request to wait for.

◆ EndForward()

void Aspose::Email::Clients::Smtp::SmtpClient::EndForward ( System::SharedPtr< System::IAsyncResult >  asyncResult)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Waits for the asynchronous operation to complete.

Parameters
asyncResultThe reference to the pending asynchronous request to wait for.

◆ EndNoop()

void Aspose::Email::Clients::Smtp::SmtpClient::EndNoop ( System::SharedPtr< System::IAsyncResult >  asyncResult)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Waits for the pending asynchronous operation to complete.

Parameters
asyncResultThe reference to the pending asynchronous request to wait for.

◆ EndSend()

void Aspose::Email::Clients::Smtp::SmtpClient::EndSend ( System::SharedPtr< System::IAsyncResult >  asyncResult)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Waits for the asynchronous operation to complete.

Parameters
asyncResultThe reference to the pending asynchronous request to wait for.

◆ EndValidateCredentials()

bool Aspose::Email::Clients::Smtp::SmtpClient::EndValidateCredentials ( System::SharedPtr< System::IAsyncResult >  asyncResult)

Please note: this method is used only for the .NET framework with versions earlier than 4.5.

Waits for the pending asynchronous operation to complete.

Parameters
asyncResultThe reference to the pending asynchronous request to wait for.
Returns
True if authentication was successful, otherwise false.

◆ Forward() [1/6]

void Aspose::Email::Clients::Smtp::SmtpClient::Forward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< MailMessage message 
)

Forwards specified message to recipient

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageThe message for a forwarding.

◆ Forward() [2/6]

void Aspose::Email::Clients::Smtp::SmtpClient::Forward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< System::IO::Stream >  messageStream 
)

Forwards specified message to recipient

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageStreamThe stream that represents message in eml format.

◆ Forward() [3/6]

void Aspose::Email::Clients::Smtp::SmtpClient::Forward ( System::SharedPtr< IConnection connection,
System::String  sender,
System::String  recipient,
System::SharedPtr< MailMessage message 
)

Forwards specified message to recipient

Parameters
connectionConnection to a server
senderSender of the forwarded message.
recipientRecipient of the forwarded message.
messageThe message for a forwarding.

◆ Forward() [4/6]

void Aspose::Email::Clients::Smtp::SmtpClient::Forward ( System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< MailMessage message 
)

Forwards specified message to recipient

Parameters
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageThe message for a forwarding.

◆ Forward() [5/6]

void Aspose::Email::Clients::Smtp::SmtpClient::Forward ( System::String  sender,
System::SharedPtr< MailAddressCollection recipients,
System::SharedPtr< System::IO::Stream >  messageStream 
)

Forwards specified message to recipient

Parameters
senderSender of the forwarded message.
recipientsRecipients of the forwarded message.
messageStreamThe stream that represents message in eml format.

◆ Forward() [6/6]

void Aspose::Email::Clients::Smtp::SmtpClient::Forward ( System::String  sender,
System::String  recipient,
System::SharedPtr< MailMessage message 
)

Forwards specified message to recipient

Parameters
senderSender of the forwarded message.
recipientRecipient of the forwarded message.
messageThe message for a forwarding.

◆ get_AllowedAuthentication()

SmtpKnownAuthenticationType Aspose::Email::Clients::Smtp::SmtpClient::get_AllowedAuthentication ( )

Gets enumeration of allowed by user authentication types

◆ get_DefaultPort()

int32_t Aspose::Email::Clients::Smtp::SmtpClient::get_DefaultPort ( )
overridevirtual

Gets default port for client

Reimplemented from Aspose::Email::Clients::EmailClient.

◆ get_DeliveryMethod()

SmtpDeliveryMethod Aspose::Email::Clients::Smtp::SmtpClient::get_DeliveryMethod ( )

Gets the delivery method.

An SmtpDeliveryMethod that indicates how messages are delivered.

◆ get_HelloMessage()

System::String Aspose::Email::Clients::Smtp::SmtpClient::get_HelloMessage ( )

Gets a HELO/EHLO string.

◆ get_PickupDirectoryLocation()

System::String Aspose::Email::Clients::Smtp::SmtpClient::get_PickupDirectoryLocation ( )

Gets the directory where applications save mail messages to be processed by the local SMTP server. Please note: only absolute path is allowed.

A String that represents the pickup directory

◆ get_Pool()

System::SharedPtr<SmtpConnectionPool> Aspose::Email::Clients::Smtp::SmtpClient::get_Pool ( )

Gets connection pool for the client

◆ get_SmtpQueueLocation()

System::String Aspose::Email::Clients::Smtp::SmtpClient::get_SmtpQueueLocation ( )

Gets the directory where applications save mail messages to be processed by sending in SMTP queue. Please note: only absolute path is allowed.

A String that represents the pickup directory

◆ get_SupportedAuthentication()

SmtpKnownAuthenticationType Aspose::Email::Clients::Smtp::SmtpClient::get_SupportedAuthentication ( )

Gets enumeration of supported by server authentication types

◆ get_UseDefaultCredentials()

bool Aspose::Email::Clients::Smtp::SmtpClient::get_UseDefaultCredentials ( )
overridevirtual

Gets a Boolean value that controls whether the DefaultCredentials are sent with requests.

Reimplemented from Aspose::Email::Clients::EmailClient.

◆ get_UseTnef()

bool Aspose::Email::Clients::Smtp::SmtpClient::get_UseTnef ( )

Gets a boolean value that controls whether the messages are sent in TNEF format. Note, that now message is sent in TNEF format when being loaded a message contains tnef.

◆ Noop() [1/3]

void Aspose::Email::Clients::Smtp::SmtpClient::Noop ( )
overridevirtual

'No operation' command

Implements Aspose::Email::Clients::EmailClient.

◆ Noop() [2/3]

void Aspose::Email::Clients::Smtp::SmtpClient::Noop ( System::SharedPtr< Connection >  connection,
int32_t  timeout 
)
overridevirtual

'No operation' command

Parameters
connectionConnection to a server
timeouttimeout of a command

Implements Aspose::Email::Clients::EmailClient.

◆ Noop() [3/3]

void Aspose::Email::Clients::Smtp::SmtpClient::Noop ( System::SharedPtr< IConnection connection)
overridevirtual

'No operation' command

Parameters
connectionConnection to a server

Implements Aspose::Email::Clients::EmailClient.

◆ Send() [1/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( const System::ArrayPtr< System::SharedPtr< MailMessage >> &  messages)

Send the specified message.

Parameters
messagesThe array of MailMessage that represents an email-messages to send.

◆ Send() [2/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( System::SharedPtr< IConnection connection,
const System::ArrayPtr< System::SharedPtr< MailMessage >> &  messages 
)

Send the specified message.

Parameters
connectionConnection to a server
messagesThe array of MailMessage that represents an email-messages to send.

◆ Send() [3/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( System::SharedPtr< IConnection connection,
System::SharedPtr< MailMessage message 
)

Send the specified message.

Parameters
connectionConnection to a server
messageThe MailMessage that represents an email-message.

◆ Send() [4/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( System::SharedPtr< IConnection connection,
System::SharedPtr< MailMessageCollection messages 
)

Send the specified message collection.

Parameters
connectionConnection to a server
messagesThe collection of messages.

◆ Send() [5/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( System::SharedPtr< IConnection connection,
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages 
)

Send the specified messages.

Parameters
connectionConnection to a server
messagesThe IEnumerator that supports a message iteration.

◆ Send() [6/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( System::SharedPtr< IConnection connection,
System::String  from,
System::String  recipients,
System::String  subject,
System::String  body 
)

Creates and sends the specified message.

Parameters
connectionConnection to a server
fromA String that contains the address of message sender.
recipientsA String that contains the address of recipients.
subjectA subject of message.
bodyA body of message.

◆ Send() [7/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( System::SharedPtr< MailMessage message)
overridevirtual

Send the specified message.

Parameters
messageThe MailMessage that represents an email-message.

Implements Aspose::Email::Clients::Smtp::IMailTransferAgent.

◆ Send() [8/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( System::SharedPtr< MailMessageCollection messages)

Send the specified message collection.

Parameters
messagesThe collection of messages.

◆ Send() [9/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages)

Send the specified messages.

Parameters
messagesThe IEnumerator that supports a message iteration.

◆ Send() [10/10]

void Aspose::Email::Clients::Smtp::SmtpClient::Send ( System::String  from,
System::String  recipients,
System::String  subject,
System::String  body 
)

Creates and sends the specified message.

Parameters
fromA String that contains the address of message sender.
recipientsA String that contains the address of recipients.
subjectA subject of message.
bodyA body of message.

◆ SendToQueue()

void Aspose::Email::Clients::Smtp::SmtpClient::SendToQueue ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages)

Append messages to queue

Parameters
messagesMailMessages to send

◆ set_AllowedAuthentication()

void Aspose::Email::Clients::Smtp::SmtpClient::set_AllowedAuthentication ( SmtpKnownAuthenticationType  value)

Sets enumeration of allowed by user authentication types

◆ set_DeliveryMethod()

void Aspose::Email::Clients::Smtp::SmtpClient::set_DeliveryMethod ( SmtpDeliveryMethod  value)

Sets the delivery method.

An SmtpDeliveryMethod that indicates how messages are delivered.

◆ set_HelloMessage()

void Aspose::Email::Clients::Smtp::SmtpClient::set_HelloMessage ( System::String  value)

Sets a HELO/EHLO string.

◆ set_PickupDirectoryLocation()

void Aspose::Email::Clients::Smtp::SmtpClient::set_PickupDirectoryLocation ( System::String  value)

Sets the directory where applications save mail messages to be processed by the local SMTP server. Please note: only absolute path is allowed.

A String that represents the pickup directory

◆ set_SmtpQueueLocation()

void Aspose::Email::Clients::Smtp::SmtpClient::set_SmtpQueueLocation ( System::String  value)

Sets the directory where applications save mail messages to be processed by sending in SMTP queue. Please note: only absolute path is allowed.

A String that represents the pickup directory

◆ set_UseDefaultCredentials()

void Aspose::Email::Clients::Smtp::SmtpClient::set_UseDefaultCredentials ( bool  value)
overridevirtual

Sets a Boolean value that controls whether the DefaultCredentials are sent with requests.

Reimplemented from Aspose::Email::Clients::EmailClient.

◆ set_UseTnef()

void Aspose::Email::Clients::Smtp::SmtpClient::set_UseTnef ( bool  value)

Sets a boolean value that controls whether the messages are sent in TNEF format. Note, that now message is sent in TNEF format when being loaded a message contains tnef.

◆ ValidateCredentials() [1/2]

bool Aspose::Email::Clients::Smtp::SmtpClient::ValidateCredentials ( )
overridevirtual

Executes credentials validation

Returns
True if authentication was successful, otherwise false.

Implements Aspose::Email::Clients::EmailClient.

◆ ValidateCredentials() [2/2]

bool Aspose::Email::Clients::Smtp::SmtpClient::ValidateCredentials ( System::SharedPtr< IConnection connection)

Executes credentials validation

Parameters
connectionConnection to a server
Returns
True if authentication was successful, otherwise false.