Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

WD21 - EmailReadFirst question (3 replies)

$
0
0
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?

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>