Hi,
I need to read message from a mailbox. Works fine using
EmailStartPOP3Session(sUser, sPassword, sAddress, sPort)
EmailReadFirst(sSMTPUser)
And then the default Email structureis filled with info.
After this I have to use EmailDeleteMessage() otherwise I get all the messages again the next time. Is this normal behaviour?
I also tried to use an email variable and a session
mySession is EmailPop3Session
myEmail is Email
mySession.Server = sServer
etc
EmailStartSession(mySession)
EmailReadFirst(mySession,myEmail)
The call to EmailReadFirst returns true, but the email variable is not filled with any info. And I'm sure there;s is a message on the server.
Also when I empty the mailbox myself and restart the code above, the call to EmailReadFirst is STILL true.
What am I doing wrong here?
I need to read message from a mailbox. Works fine using
EmailStartPOP3Session(sUser, sPassword, sAddress, sPort)
EmailReadFirst(sSMTPUser)
And then the default Email structureis filled with info.
After this I have to use EmailDeleteMessage() otherwise I get all the messages again the next time. Is this normal behaviour?
I also tried to use an email variable and a session
mySession is EmailPop3Session
myEmail is Email
mySession.Server = sServer
etc
EmailStartSession(mySession)
EmailReadFirst(mySession,myEmail)
The call to EmailReadFirst returns true, but the email variable is not filled with any info. And I'm sure there;s is a message on the server.
Also when I empty the mailbox myself and restart the code above, the call to EmailReadFirst is STILL true.
What am I doing wrong here?