title: ASP.NET MVC UserManager.SendEmailAsync not sending email
body: <p>The code in my AdminController.cs </p>
  
  <pre><code>await UserManager.SendEmailAsync(
      user.Id, "Confirm your account", 
      "Please confirm your account by clicking &lt;a href=\"" + callbackUrl + "\"&gt;here&lt;/a&gt;"
  );
  </code></pre>
  
  <p>Does not appear to attempt to send an email.</p>
  
  <p>IdentityConfig.cs</p>
  
  <pre><code>public Task SendAsync(IdentityMessage message)
      {            
  
          // Plug in your email service here to send an email.
          SmtpClient client = new SmtpClient();
          client.UseDefaultCredentials = true;
  
          MailMessage mail = new MailMessage("noreply@website.com", message.Destination);
          mail.Subject = message.Subject;
          mail.Body = message.Body;
          mail.IsBodyHtml = true;
  
          return client.SendMailAsync(mail);            
      }
  </code></pre>
  
  <p>I use the following code elsewhere in my application which does work.</p>
  
  <pre><code>IdentityMessage emailMessage = new IdentityMessage
    {
      Destination = recipient.Email,
      Subject = "You have a new message - " + message.Subject,
      Body = "&lt;p&gt;Message from: " + recipient.UserName + "&lt;/p&gt;" + message.Body
    };
    EmailService emailService = new EmailService();
    emailService.SendAsync(emailMessage);
  </code></pre>
  
  <p>I have seen a few similar questions but as far as I can see, my setup should be working. </p>
  
  <p>Any advice much appreciated.</p>
  
  <p>Thanks!</p>