title: SMTP Email Settings for Gmail .NET Core Doesn't Work
body: <pre><code> &quot;EmailSettings&quot;: {
      &quot;PrimaryDomain&quot;: &quot;smtp.gmail.com&quot;,
      &quot;PrimaryPort&quot;: &quot;587&quot;,
      &quot;SecondayDomain&quot;: &quot;smtp.live.com&quot;,
      &quot;SecondaryPort&quot;: &quot;587&quot;,
      &quot;UsernameEmail&quot;: &quot;example@gmail.com&quot;,
      &quot;UsernamePassword&quot;: &quot;mypassword&quot;,
      &quot;FromEmail&quot;: &quot;info&quot;,
      &quot;ToEmail&quot;: &quot;&quot;,
      &quot;CcEmail&quot;: &quot;&quot;
    },
  </code></pre>
  <p>I wanted to send automail from via my mail. Appsettings.json in .NET Core I use this gmail settings for send but it doesn't work. I coulnd't send mail. Is this true or there is any mistake that U=I missed?</p>