SmtpClient.SendAsync Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sends an e-mail message. These methods do not block the calling thread.

Namespace:   System.Net.Mail
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSendAsync(MailMessage, Object)

Sends the specified e-mail message to an SMTP server for delivery. This method does not block the calling thread and allows the caller to pass an object to the method that is invoked when the operation completes.

System_CAPS_pubmethodSendAsync(String, String, String, String, Object)

Sends an e-mail message to an SMTP server for delivery. The message sender, recipients, subject, and message body are specified using String objects. This method does not block the calling thread and allows the caller to pass an object to the method that is invoked when the operation completes.

Return to top
Show: