SmtpSendAsync Method (String, EmailAddressCollection) |
Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<bool> SendAsync(
string senderEmail,
EmailAddressCollection recipients
)
Public Function SendAsync (
senderEmail As String,
recipients As EmailAddressCollection
) As Task(Of Boolean)
Parameters
- senderEmail
- Type: SystemString
The e-mail address of the sender. If it's a null reference
(Nothing in Visual Basic), the e-mail address is taken from From
property. - recipients
- Type: MailBee.MimeEmailAddressCollection
The list of the message recipients. If it's a null reference
(Nothing in Visual Basic), the recipients list is combined from To,
Cc, and Bcc lists.
Return Value
Type:
TaskBooleanA task that represents the asynchronous operation.
The value of
TResult parameter is
true if the method succeeds; otherwise,
false.
Exceptions See Also