Sample code for 30+ languages & platforms
PowerShell Requires Chilkat v11.0.0+

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$success = $false
$mailman = New-Object Chilkat.MailMan

#  Setup mailman with POP3 server and login settings...
#  ...
#  ...

$bundle = New-Object Chilkat.EmailBundle
$keepOnServer = $true
$headersOnly = $false
#  numBodyLines only applies if downloading headers-only.
$numBodyLines = 0

$success = $mailman.FetchAll($keepOnServer,$headersOnly,$numBodyLines,$bundle)
if ($success -eq $false) {
    $($mailman.LastErrorText)
    exit
}

#  ...
#  ...