title: The SMTP server does not support authentication. When using email verification with identity
body: <p>This is my first time doing email verification,i followed a tutorial which used papercut and an example email,but i wanted to try do this with an actual gmail but i get the following error:<strong>The SMTP server does not support authentication. When using email verification with identit</strong></p>
  
  <p>i assume there something wrong with my json file</p>
  
  <pre><code>"Email": {
      "Server": "smtp.gmail.com",
      "Port": 587,
      "SenderName": "LoveLetter",
      "SenderEmail": "crunchgymemailbot@gmail.com",
      "Account": "emailbot3123***@gmail.com",
      "Password": "mypassword"
    },"
  </code></pre>
  
  <p>here is  a part of my register code</p>
  
  <pre><code>  if (result.Succeeded)  {
          var code = await _userManager.GenerateEmailConfirmationTokenAsync(user);
  
              var link = Url.Action(nameof(VerifyEmail), "Home", new { userId = user.Id, code }, Request.Scheme, Request.Host.ToString());
  
            code = WebEncoders.Base64UrlEncode(Encoding.UTF8.GetBytes(code));
  
            await _emailService.SendAsync(model.Email, "email verify", $"&lt;a href=\"{link}\"&gt;Verify Email&lt;/a&gt;", true);
  
            return RedirectToAction("EmailVerification");
                      }
  </code></pre>
  
  <p>and my startup.cs</p>
  
  <pre><code>var mailKitOptions = Configuration.GetSection("Email").Get&lt;MailKitOptions&gt;();
              services.AddMailKit(config =&gt; config.UseMailKit(mailKitOptions));
  </code></pre>