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

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

llSuccess = .F.
loMailman = createobject("CkMailMan")

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

loBundle = createobject("CkEmailBundle")
llKeepOnServer = .T.
llHeadersOnly = .F.
//  numBodyLines only applies if downloading headers-only.
lnNumBodyLines = 0

llSuccess = loMailman.FetchAll(llKeepOnServer,llHeadersOnly,lnNumBodyLines,loBundle)
if (llSuccess = .F.) then
    ? loMailman.LastErrorText
    release loMailman
    release loBundle
    return
endif

//  ...
//  ...


release loMailman
release loBundle