Hi,
Is it possible to read and send mails from Exchange Server? Is there any example for it?
Thanks in advance.
oSession:=CreateObject("MSMAPI.MAPISession")
Just wondering whether another method exist to retrieve the header only.
oInMail = TPop3():New( cIp,, cUserName, cPassword )
oInMail:lHeaderOnly:=.T. // Retrieves only the headers
DATA lHeaderOnly // New Data
::lHeaderOnly:=.F. // Initialize the Value to .F.
if ::lHeaderOnly
cCommand = "TOP " + AllTrim( Str( 1, 4, 0 ) )+ " 0" + CRLF
Else
cCommand = "RETR " + AllTrim( Str( 1, 4, 0 ) )+ CRLF
Endif
if ::lHeaderOnly
cCommand = "TOP " + AllTrim( Str( ++::nAtMsg, 4, 0 ) ) + " 0" + CRLF
Else
cCommand = "RETR " + AllTrim( Str( ++::nAtMsg, 4, 0 ) ) + CRLF
Endif
if ::lHeaderOnly
cCommand = "TOP " + AllTrim( Str( ++::nAtMsg, 4, 0 ) ) + " 0" + CRLF
else
cCommand = "RETR " + AllTrim( Str( ++::nAtMsg, 4, 0 ) ) + CRLF
Endif
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 46 guests