Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. System.Net.Mail
  3. SmtpClient
  4. SendMailAsync(MailMessage, CancellationToken)
  • SmtpClient
    • SmtpClient()
    • SmtpClient(String)
    • SmtpClient(String, Int32)
    • ClientCertificates
    • Credentials
    • DeliveryFormat
    • DeliveryMethod
    • EnableSsl
    • Host
    • PickupDirectoryLocation
    • Port
    • ServicePoint
    • TargetName
    • Timeout
    • UseDefaultCredentials
    • Dispose()
    • Dispose(Boolean)
    • OnSendCompleted(AsyncCompletedEventArgs)
    • Send(MailMessage)
    • Send(String, String, String, String)
    • SendAsync(MailMessage, Object)
    • SendAsync(String, String, String, String, Object)
    • SendAsyncCancel()
    • SendMailAsync(MailMessage)
    • SendMailAsync(MailMessage, CancellationToken)
    • SendMailAsync(String, String, String, String)
    • SendMailAsync(String, String, String, String, CancellationToken)
    • SendCompleted
    • SendTaskAsync(SmtpClient, MailMessage)
    • SendTaskAsync(SmtpClient, MailMessage)
    • SendTaskAsync(SmtpClient, String, String, String, String)
    • SendTaskAsync(SmtpClient, String, String, String, String)
net9.0
namespace System.Net.Mail
{
    [UnsupportedOSPlatform("browser")]
    public class SmtpClient : IDisposable
    {
        public Task! SendMailAsync(MailMessage! message, CancellationToken cancellationToken);
    }
}
Design Reviews
  • dotnet/corefx#24475 6 years ago (Approved)
.NET
5.06.07.08.09.0
Information specific to net9.0
Assembly

System.Net.Mail , Version=9.0.0.0, PublicKeyToken=cc7b13ffcd2ddd51

Referencing

The API is automatically referenced.

Platform Restrictions

This API is supported on any platform except for these:

  • Browser
  • Built-in API
  • Package-provided API
Search

10/14/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙