Closed MihaIvan closed 2 years ago
Hi @MihaIvan, That isn't a Send-MailKitMessage error, that is a PowerShell error message. There is lots of information out there on possible resolutions if you do a search on "Unable to download the list of available providers. Check your internet connection.".
One thing to note: are you running an updated version of PowerShell (currently 7.2.6)? If not you can install it from here: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2#installing-the-msi-package Send-MailKitMessage is designed to work with PowerShell 6+, if you need to use it with Windows PowerShell there is a preview version of the module available which adds support for Windows PowerShell: https://www.powershellgallery.com/packages/Send-MailKitMessage/3.2.0-preview1
I used the command shown for installation. I got a prompt asking if I want to install and import the NuGet provider now. I responded Yes. Here is the contents of the command and output: PS C:\Windows\system32> install-module -Name "Send-MailKitMessage" -scope AllUsers WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7405 char:21
PackageManagement\Import-PackageProvider : No match was found for the specified search criteria and provider name 'NuGet'. Try 'Get-PackageProvider -ListAvailable' to see if the provider exists on the system. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7411 char:21
WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Get-PackageProvider : Unable to find package provider 'NuGet'. It may not be imported yet. Try 'Get-PackageProvider -ListAvailable'. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7415 char:30
install-module : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed. At line:1 char:1