SmtpClient.SendAsync
SendAsync(string, string, string, string)
Creates and sends the specified message.
public Task SendAsync(string from, string recipients, string subject, string body)
Parameter | Type | Description |
---|---|---|
from | String | A String that contains the address of message sender. |
recipients | String | A String that contains the address of recipients. |
subject | String | A subject of message. |
body | String | A body of message. |
Return Value
Task object, with delegate for this operation
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(MailMessage)
Send the specified message.
public Task SendAsync(MailMessage message)
Parameter | Type | Description |
---|---|---|
message | MailMessage | The MailMessage that represents an email-message. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(params MailMessage[])
Send the specified message.
public Task SendAsync(params MailMessage[] messages)
Parameter | Type | Description |
---|---|---|
messages | MailMessage[] | The array of MailMessage that represents an email-messages to send. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(MailMessageCollection)
Send the specified message collection.
public Task SendAsync(MailMessageCollection messages)
Parameter | Type | Description |
---|---|---|
messages | MailMessageCollection | The collection of messages. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessageCollection
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IEnumerable<MailMessage>)
Send the specified messages.
public Task SendAsync(IEnumerable<MailMessage> messages)
Parameter | Type | Description |
---|---|---|
messages | IEnumerable`1 | The IEnumerator that supports a message iteration. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, string, string, string, string)
Creates and sends the specified message.
public Task SendAsync(IConnection connection, string from, string recipients, string subject,
string body)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
from | String | A String that contains the address of message sender. |
recipients | String | A String that contains the address of recipients. |
subject | String | A subject of message. |
body | String | A body of message. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, MailMessage)
Send the specified message.
public Task SendAsync(IConnection connection, MailMessage message)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
message | MailMessage | The MailMessage that represents an email-message. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, params MailMessage[])
Send the specified message.
public Task SendAsync(IConnection connection, params MailMessage[] messages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
messages | MailMessage[] | The array of MailMessage that represents an email-messages to send. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, MailMessageCollection)
Send the specified message collection.
public Task SendAsync(IConnection connection, MailMessageCollection messages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
messages | MailMessageCollection | The collection of messages. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class MailMessageCollection
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, IEnumerable<MailMessage>)
Send the specified messages.
public Task SendAsync(IConnection connection, IEnumerable<MailMessage> messages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
messages | IEnumerable`1 | The IEnumerator that supports a message iteration. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(string, string, string, string, CancellationToken)
Creates and sends the specified message.
public Task SendAsync(string from, string recipients, string subject, string body,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
from | String | A String that contains the address of message sender. |
recipients | String | A String that contains the address of recipients. |
subject | String | A subject of message. |
body | String | A body of message. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(MailMessage, CancellationToken)
Send the specified message.
public Task SendAsync(MailMessage message, CancellationToken token)
Parameter | Type | Description |
---|---|---|
message | MailMessage | The MailMessage that represents an email-message. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(CancellationToken, params MailMessage[])
Send the specified message.
public Task SendAsync(CancellationToken token, params MailMessage[] messages)
Parameter | Type | Description |
---|---|---|
token | CancellationToken | Propagates notification that operations should be canceled. |
messages | MailMessage[] | The array of MailMessage that represents an email-messages to send. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(MailMessageCollection, CancellationToken)
Send the specified message collection.
public Task SendAsync(MailMessageCollection messages, CancellationToken token)
Parameter | Type | Description |
---|---|---|
messages | MailMessageCollection | The collection of messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessageCollection
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IEnumerable<MailMessage>, CancellationToken)
Send the specified messages.
public Task SendAsync(IEnumerable<MailMessage> messages, CancellationToken token)
Parameter | Type | Description |
---|---|---|
messages | IEnumerable`1 | The IEnumerator that supports a message iteration. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, string, string, string, string, CancellationToken)
Creates and sends the specified message.
public Task SendAsync(IConnection connection, string from, string recipients, string subject,
string body, CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
from | String | A String that contains the address of message sender. |
recipients | String | A String that contains the address of recipients. |
subject | String | A subject of message. |
body | String | A body of message. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, MailMessage, CancellationToken)
Send the specified message.
public Task SendAsync(IConnection connection, MailMessage message, CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
message | MailMessage | The MailMessage that represents an email-message. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, CancellationToken, params MailMessage[])
Send the specified message.
public Task SendAsync(IConnection connection, CancellationToken token,
params MailMessage[] messages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
token | CancellationToken | Propagates notification that operations should be canceled. |
messages | MailMessage[] | The array of MailMessage that represents an email-messages to send. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, MailMessageCollection, CancellationToken)
Send the specified message collection.
public Task SendAsync(IConnection connection, MailMessageCollection messages,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
messages | MailMessageCollection | The collection of messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class MailMessageCollection
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(IConnection, IEnumerable<MailMessage>, CancellationToken)
Send the specified messages.
public Task SendAsync(IConnection connection, IEnumerable<MailMessage> messages,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
messages | IEnumerable`1 | The IEnumerator that supports a message iteration. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
SendAsync(SmtpSend)
public Task SendAsync(SmtpSend parameters)
See Also
- class SmtpSend
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email