SmtpClientSendAsync Method (String, String, String, String, CancellationToken) |
Creates and sends the specified message.
Namespace:
Aspose.Email.Clients.Smtp
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic Task SendAsync(
string from,
string recipients,
string subject,
string body,
CancellationToken token
)
Public Function SendAsync (
from As String,
recipients As String,
subject As String,
body As String,
token As CancellationToken
) As Task
public:
Task^ SendAsync(
String^ from,
String^ recipients,
String^ subject,
String^ body,
CancellationToken token
)
member SendAsync :
from : string *
recipients : string *
subject : string *
body : string *
token : CancellationToken -> Task
Parameters
- from
- Type: SystemString
A String that contains the address of message sender. - recipients
- Type: SystemString
A String that contains the address of recipients. - subject
- Type: SystemString
A subject of message. - body
- Type: SystemString
A body of message. - token
- Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.
Return Value
Type:
TaskTask object, with delegate for this operation
See Also