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

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat B4X Downloads

B4X
Dim success As Boolean = False

success = False
Dim mailman As ChilkatMailMan
mailman.Initialize("mailman")

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

Dim bundle As ChilkatEmailBundle
bundle.Initialize
Dim keepOnServer As Boolean = True
Dim headersOnly As Boolean = False
'  numBodyLines only applies if downloading headers-only.
Dim numBodyLines As Int = 0

success = mailman.FetchAll(keepOnServer, headersOnly, numBodyLines, bundle)
If success = False Then
    Log(mailman.LastErrorText)
    Return
End If


'  ...
'  ...