title: Unable to install MailKit .NET library in Powershell
body: <p>According to <a href="https://adamtheautomator.com/how-to-send-email-securely-with-powershell/" rel="nofollow noreferrer">this article</a>, one can install the MailKit library through Powershell using the code</p>
  <p><code>Install-Package -Name 'MailKit' -Source 'nuget.org</code>'</p>
  <p>I've not been successful with the installation, which yields this error message:</p>
  <pre><code>Install-Package : No match was found for the specified search criteria and package name 'MailKit'. Try
  Get-PackageSource to see all available registered package sources.
  At line:1 char:1
  + Install-Package -Name 'MailKit' -Source 'nuget.org'
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
     ception
      + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
  </code></pre>
  <p>I have searched for a solution without success. When I tried adding the <code>Verbose</code> parameter, this is the output:</p>
  <pre><code>VERBOSE: Using the provider 'NuGet' for searching packages.
  VERBOSE: Searching repository 'https://api.nuget.org/v3/index.json/FindPackagesById()?id='MailKit'' for ''.
  </code></pre>
  <p>Any help would be appreciated.</p>