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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


SendAsync(SmtpSend)

public Task SendAsync(SmtpSend parameters)

See Also