SmtpClient

SmtpClient class

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

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

Constructors

NameDescription
SmtpClient (17 overloads)Initializes a new instance of the SmtpClient class.

Methods

NameDescription
BeginForward (13 overloads)Please note: this method is used only for the .NET framework with versions earlier than 4.5.
BeginNoop (6 overloads)Please note: this method is used only for the .NET framework with versions earlier than 4.5.
BeginSend (26 overloads)Please note: this method is used only for the .NET framework with versions earlier than 4.5.
BeginSendQueue (3 overloads)Please note: this method is used only for the .NET framework with versions earlier than 4.5.
BeginValidateCredentials (6 overloads)Please note: this method is used only for the .NET framework with versions earlier than 4.5.
EndBeginSendQueuePlease note: this method is used only for the .NET framework with versions earlier than 4.5.
EndForwardPlease note: this method is used only for the .NET framework with versions earlier than 4.5.
EndNoopPlease note: this method is used only for the .NET framework with versions earlier than 4.5.
EndSendPlease note: this method is used only for the .NET framework with versions earlier than 4.5.
EndValidateCredentialsPlease note: this method is used only for the .NET framework with versions earlier than 4.5.
Forward (6 overloads)Forwards specified message to recipient
get_AllowedAuthenticationGets enumeration of allowed by user authentication types
get_DefaultPortGets default port for client
get_DeliveryMethodGets the delivery method.
get_HelloMessageGets a HELO/EHLO string.
get_PickupDirectoryLocationGets the directory where applications save mail messages to be processed by the local SMTP server. Please note: only absolute path is allowed.
get_PoolGets connection pool for the client
get_SmtpQueueLocationGets the directory where applications save mail messages to be processed by sending in SMTP queue. Please note: only absolute path is allowed.
get_SupportedAuthenticationGets enumeration of supported by server authentication types
get_UseDefaultCredentialsGets a Boolean value that controls whether the DefaultCredentials are sent with requests.
get_UseTnefGets 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 (3 overloads)‘No operation’ command
Send (10 overloads)Send the specified message.
SendToQueueAppend messages to queue
set_AllowedAuthenticationSets enumeration of allowed by user authentication types
set_DeliveryMethodSets the delivery method.
set_HelloMessageSets a HELO/EHLO string.
set_PickupDirectoryLocationSets the directory where applications save mail messages to be processed by the local SMTP server. Please note: only absolute path is allowed.
set_SmtpQueueLocationSets the directory where applications save mail messages to be processed by sending in SMTP queue. Please note: only absolute path is allowed.
set_UseDefaultCredentialsSets a Boolean value that controls whether the DefaultCredentials are sent with requests.
set_UseTnefSets 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 (2 overloads)Executes credentials validation