As others have noted, SendAsync bit misleading. It returns void , not Task . If you want await to send a mail call, you need to use the method
SendMailAsync(MailMessage message)
or
SendMailAsync(string from, string recipients, string subject, string body)
Both of them return a Task and can be expected.
source share