SmtpClientSendAsync Method (IConnection, String, String, String, String) |
Creates and sends the specified message.
Namespace:
Aspose.Email.Clients.Smtp
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic Task SendAsync(
IConnection connection,
string from,
string recipients,
string subject,
string body
)
Public Function SendAsync (
connection As IConnection,
from As String,
recipients As String,
subject As String,
body As String
) As Task
public:
Task^ SendAsync(
IConnection^ connection,
String^ from,
String^ recipients,
String^ subject,
String^ body
)
member SendAsync :
connection : IConnection *
from : string *
recipients : string *
subject : string *
body : string -> Task
Parameters
- connection
- Type: Aspose.Email.ClientsIConnection
Connection to a server - 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.
Return Value
Type:
TaskTask object, with delegate for this operation
See Also